2 Replies Latest reply on Sep 23, 2004 4:31 AM by brian murphy

    JBoss error when deploying webapp

    Greg McCormick Newbie

      Hi,
      I am new to JBoss and am trying to set up a web app that i currently have running in tomcat 4.1.24. The version of JBoss I am running is 3.2.5. When I drop the web-app in this is the browser stack trace I get.

      HTTP Status 500 -

      --------------------------------------------------------------------------------

      type Exception report

      message

      description The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      org.apache.jasper.JasperException: Unable to compile class for JSP

      An error occurred at line: 30 in the jsp file: /pages/heldOrderForm.jsp
      Generated servlet error:
      C:\java\jboss-3.2.5\server\default\work\jboss.web\localhost\noInk\org\apache\jsp\pages\heldOrderForm_jsp.java:150: _jspx_meth_bean_write_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.pages.heldOrderForm_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_0(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      An error occurred at line: 30 in the jsp file: /pages/heldOrderForm.jsp
      Generated servlet error:
      C:\java\jboss-3.2.5\server\default\work\jboss.web\localhost\noInk\org\apache\jsp\pages\heldOrderForm_jsp.java:157: _jspx_meth_bean_write_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.pages.heldOrderForm_jsp cannot be applied to (org.apache.struts.taglib.logic.IterateTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_bean_write_1(_jspx_th_logic_iterate_0, _jspx_page_context))
      ^


      An error occurred at line: 22 in the jsp file: /pages/heldOrderForm.jsp
      Generated servlet error:
      C:\java\jboss-3.2.5\server\default\work\jboss.web\localhost\noInk\org\apache\jsp\pages\heldOrderForm_jsp.java:223: _jspx_meth_html_submit_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.pages.heldOrderForm_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_submit_0(_jspx_th_html_form_0, _jspx_page_context))
      ^


      An error occurred at line: 22 in the jsp file: /pages/heldOrderForm.jsp
      Generated servlet error:
      C:\java\jboss-3.2.5\server\default\work\jboss.web\localhost\noInk\org\apache\jsp\pages\heldOrderForm_jsp.java:227: _jspx_meth_html_submit_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.pages.heldOrderForm_jsp cannot be applied to (org.apache.struts.taglib.html.FormTag,javax.servlet.jsp.PageContext)
      if (_jspx_meth_html_submit_1(_jspx_th_html_form_0, _jspx_page_context))
      ^
      4 errors



      org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
      org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
      org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
      org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
      org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
      org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:320)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


      If more information is needed I would be happy to find it. If anyone could shed some light on this I would REALLY appreciate it.

        • 1. Re: JBoss error when deploying webapp
          Rene Zanner Newbie

          Hi,

          it seems that the versions of Struts and the JSP API you're using don't fit together. The Tomcat 5 shipped with JBoss 3.2.5 is already using the javax.servlet.* classes from the J2EE1.4 API. There the BodyTagSupport class - from which the Struts iterate tag is inheriting - implements the newly introduced interface javax.servlet.jsp.tagext.JspTag. So the new method signature does not fit any more the old tags of Struts.

          Two possibilities I see here: try using an old version of Tomcat (maybe just use the 4.1 service shipped with JBoss 3.2.3) or try to find a new version of Struts supporting the new JSP API.

          HTH!

          Cheers,

          René

          • 2. Re: JBoss error when deploying webapp
            brian murphy Newbie

            Hi gmccormick,

            I have the same problem as you above. The suggested fix did not work.
            Strange thing is the struts-example.war deployed and run perfectly while my own app (which at the moment is just a stripped down version of struts-example.war) throws the exceptions you mentioned.
            Did you manage to fix this problem in your app,

            thanks,

            brian.