JSON issue

48 views
Skip to first unread message

Pratik

unread,
Apr 28, 2009, 4:46:56 PM4/28/09
to json-taglib
I get the following runtime compilation error. I get this in jsp's
which are using json. I am not sure why I am getting this. I am using
Websphere Commerce server.

Can somebody please help me?

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11123: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_95(_jspx_th_json_object_5,
pageContext, _jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11126: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_96(_jspx_th_json_object_5,
pageContext, _jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11129: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_array_2(_jspx_th_json_object_5, pageContext,
_jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11138: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_c_forEach_13(_jspx_th_json_array_2, pageContext,
_jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11147: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_13
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_97(_jspx_th_json_object_6,
pageContext, _jspx_push_body_count_c_forEach_13)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11150: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_13
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_98(_jspx_th_json_object_6,
pageContext, _jspx_push_body_count_c_forEach_13)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11153: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_13
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_99(_jspx_th_json_object_6,
pageContext, _jspx_push_body_count_c_forEach_13)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11156: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_13
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_100(_jspx_th_json_object_6,
pageContext, _jspx_push_body_count_c_forEach_13)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11165: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_101(_jspx_th_json_object_7,
pageContext, _jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11168: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_102(_jspx_th_json_object_7,
pageContext, _jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11171: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_array_3(_jspx_th_json_object_7, pageContext,
_jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11180: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_c_forEach_14(_jspx_th_json_array_3, pageContext,
_jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11189: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_14
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_103(_jspx_th_json_object_8,
pageContext, _jspx_push_body_count_c_forEach_14)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11192: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_14
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_c_if_36(_jspx_th_json_object_8, pageContext,
_jspx_push_body_count_c_forEach_14)) return true;
^
14 errors
]: com.ibm.ws.jsp.JspCoreException: JSPG0049E: /Brands/ShoppingArea/
CatalogSection/CategorySubsection/subCategoryLayout.jsp failed to
compile :

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11123: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_95(_jspx_th_json_object_5,
pageContext, _jspx_push_body_count_c_forEach_12)) return true;

^

C:\WCTOOL~2\wasprofile\temp\localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java:11126: cannot resolve symbol
symbol : variable _jspx_push_body_count_c_forEach_12
location: class
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper
if (_jspx_meth_json_property_96(_jspx_th_json_object_5,
pageContext, _jspx_push_body_count_c_forEach_12)) return true;

^

Jeremy Sears

unread,
Apr 28, 2009, 5:10:58 PM4/28/09
to json-...@googlegroups.com
I don't think this is related to the JSON taglib.  I think you likely have some stale compiled pages.  You should delete the compiled JSP pages and allow them to be recompiled by the WAS pagecompiler.
--
Jeremy Sears

Pratik

unread,
Apr 28, 2009, 5:31:11 PM4/28/09
to json-taglib
But then how come I am able to see all other pages and get error only
on pages that have JSON in it. Also can you please let me know where
can I find the stale compiled pages?

Thanks

Jeremy Sears

unread,
Apr 28, 2009, 6:29:42 PM4/28/09
to json-...@googlegroups.com
I haven't worked on WAS for a while, so I don't recall where it stores them.  The translated and compiled classes are listed in the errors you sent me:

Translated Java:

C:\WCTOOL~2\wasprofile\temp\
localhost\server1\WC\Stores.war\Brands
\ShoppingArea\CatalogSection\CategorySubsection
\_subCategoryLayout.java

Look for the compiled class under your WAS_HOME:
com.ibm._jsp._subCategoryLayout._subCategoryLayoutHelper

--
Jeremy Sears
Reply all
Reply to author
Forward
0 new messages