1 Reply Latest reply on Mar 13, 2006 8:46 PM by Jitesh Kalyani

    Error when executing PetStore1.3.2 in JBoss 4.02

    Jitesh Kalyani Newbie

      Hellooooo,

      I am getting the below error while migrating petstore1.3.2 to JBoss 4.0.2.
      I am using hypersonic db. Any one got answer for this?

      I have made all necessary deploymnet descriptor changes and DB settings, Queue seettings.

      Petstore JSP using EL expressions like ${catalog.categories.list}, and the application archive has all necessary lib / tag lib embbeded.

      Please help me to resolve the issue.

      JDK - 1.5.0_6
      JBoss - 4.0.2
      OS - WinXP

      Please reply.

      ------------------------------------------------------------------------------------
      2006-03-07 15:48:44,358 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/petstore].[jsp]] Servlet.service() for servlet jsp threw exception
      javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "items" with value "${catalog.categories.list}": An error occurred while getting property "categories" from an instance of class com.sun.j2ee.blueprints.catalog.client.CatalogHelper
      at org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:140)
      at org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:112)
      at org.apache.taglibs.standard.tag.el.core.ForEachTag.evaluateExpressions(ForEachTag.java:191)
      at org.apache.taglibs.standard.tag.el.core.ForEachTag.doStartTag(ForEachTag.java:102)
      at org.apache.jsp.sidebar_jsp._jspx_meth_c_forEach_0(org.apache.jsp.sidebar_jsp:234)
      at org.apache.jsp.sidebar_jsp._jspx_meth_waf_cache_0(org.apache.jsp.sidebar_jsp:146)
      at org.apache.jsp.sidebar_jsp._jspService(org.apache.jsp.sidebar_jsp:75)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      at com.sun.j2ee.blueprints.waf.view.template.tags.InsertTag.doEndTag(Unknown Source)
      at org.apache.jsp.template_jsp._jspx_meth_template_insert_2(org.apache.jsp.template_jsp:225)
      at org.apache.jsp.template_jsp._jspService(org.apache.jsp.template_jsp:141)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
      at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.insertTemplate(Unknown Source)
      at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.process(Unknown Source)
      at com.sun.j2ee.blueprints.waf.view.template.TemplateServlet.doGet(Unknown Source)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Unknown Source)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(Unknown Source)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)
      -------------------------------------------------------------------------------------

        • 1. Re: Error when executing PetStore1.3.2 in JBoss 4.02
          Jitesh Kalyani Newbie

          Hello All,

          I have found that the EL expressions in JSP are not getting evaluated in petstore. I have tried to excute standard-examples.war (JSTL tag lib example). And it is working fine. And the JSP translated java source looks like below in caseof standard-examples.war

          ----------------------------------------------------------------------------------
          // c:out
          org.apache.taglibs.standard.tag.rt.core.OutTag _jspx_th_c_out_11 = (org.apache.taglibs.standard.tag.rt.core.OutTag) _jspx_tagPool_c_out_value_nobody.get(org.apache.taglibs.standard.tag.rt.core.OutTag.class);
          _jspx_th_c_out_11.setPageContext(_jspx_page_context);
          _jspx_th_c_out_11.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_c_if_2);
          _jspx_th_c_out_11.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.count}", java.lang.Object.class, (PageContext)_jspx_page_context, null, false));
          ----------------------------------------------------------------------------------
          But in case of petstore the JSP translated java code looks like below for expressions,

          ----------------------------------------------------------------------------------
          // c:set
          org.apache.taglibs.standard.tag.el.core.SetTag _jspx_th_c_set_6 = (org.apache.taglibs.standard.tag.el.core.SetTag) _jspx_tagPool_c_set_var_value_nobody.get(org.apache.taglibs.standard.tag.el.core.SetTag.class);
          _jspx_th_c_set_6.setPageContext(_jspx_page_context);
          _jspx_th_c_set_6.setParent((javax.servlet.jsp.tagext.Tag) _jspx_th_waf_cache_0);
          _jspx_th_c_set_6.setValue("${catalog.products}");
          _jspx_th_c_set_6.setVar("pageResults");
          ----------------------------------------------------------------------------------
          Please check the difference in setvalue(..) method,
          1. _jspx_th_c_out_11.setValue((java.lang.Object) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${status.count}", java.lang.Object.class, (PageContext)

          2. _jspx_th_c_set_6.setValue("${catalog.products}");


          proprietaryEvaluate(..) method is not present in later case.

          Can anyone help to resolve the issue. ?

          Thanks And Regards,
          Jitesh