4 Replies Latest reply on Mar 9, 2005 8:11 AM by vitorisaia

    JSP compile with deprecation turned on

    tool

      Recently I have been receiving some errors when trying to load JSPs within JBoss 4.0.1 that I have previously developed. The output says to recompile with -deprecation for more info, but I don't know how to set this. I see in the server/all/deploy/jbossweb-tomcat50.sar/conf/web.xml there is an entry to declare the JSP compiler, but I don't understand how to turn deprecation on for this compiler.

      Please help!
      Thank you in advance.
      Brian

        • 1. Re: JSP compile with deprecation turned on
          danl_thompson

          So you're not precompiling then?

          • 2. Re: JSP compile with deprecation turned on
            tool

            If you mean compiling the JSPs before deployment, then no I am not. I am fairly sure that the root cause of the problem is on my end, but I need the deprecation details in order to solve it. As an alternative, is there a fairly intuitive JSP precompiler package that someone could recommend?

            Here is the exact error message I am receiving:

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

            Generated servlet error:
            /Applications/jboss-4.0.1/server/all/work/jboss.web/localhost/RepositoryTools/org/apache/jsp/secured/index_jsp.java:102: _jspx_meth_template_put_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.secured.index_jsp cannot be applied to (org.apache.struts.taglib.template.InsertTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_template_put_0(_jspx_th_template_insert_0, _jspx_page_context))
            ^


            Generated servlet error:
            /Applications/jboss-4.0.1/server/all/work/jboss.web/localhost/RepositoryTools/org/apache/jsp/secured/index_jsp.java:106: _jspx_meth_template_put_1(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.secured.index_jsp cannot be applied to (org.apache.struts.taglib.template.InsertTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_template_put_1(_jspx_th_template_insert_0, _jspx_page_context))
            ^


            Generated servlet error:
            /Applications/jboss-4.0.1/server/all/work/jboss.web/localhost/RepositoryTools/org/apache/jsp/secured/index_jsp.java:110: _jspx_meth_template_put_2(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.secured.index_jsp cannot be applied to (org.apache.struts.taglib.template.InsertTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_template_put_2(_jspx_th_template_insert_0, _jspx_page_context))
            ^


            Generated servlet error:
            /Applications/jboss-4.0.1/server/all/work/jboss.web/localhost/RepositoryTools/org/apache/jsp/secured/index_jsp.java:114: _jspx_meth_template_put_3(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.secured.index_jsp cannot be applied to (org.apache.struts.taglib.template.InsertTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_template_put_3(_jspx_th_template_insert_0, _jspx_page_context))
            ^


            Generated servlet error:
            /Applications/jboss-4.0.1/server/all/work/jboss.web/localhost/RepositoryTools/org/apache/jsp/secured/index_jsp.java:118: _jspx_meth_template_put_4(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.secured.index_jsp cannot be applied to (org.apache.struts.taglib.template.InsertTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_template_put_4(_jspx_th_template_insert_0, _jspx_page_context))
            ^
            Note: /Applications/jboss-4.0.1/server/all/work/jboss.web/localhost/RepositoryTools/org/apache/jsp/secured/index_jsp.java uses or overrides a deprecated API.
            Note: Recompile with -deprecation for details.
            5 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.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
            org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:582)
            org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:260)
            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)
            org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)

            • 3. Re: JSP compile with deprecation turned on
              tool

              Everyone,

              This one was all our fault. We had some conflicting JARs due to a recent integration with another product. The core JBoss JARs were replicated in multiple areas within the deploy directory. We removed these offending duplicate JARs and everything is back to operating as normal.

              For those who did, thanks for taking a look, and hopefully someone else can benefit from this mistake.

              Brian

              • 4. Re: JSP compile with deprecation turned on

                Brian!

                I'm having the same problem...

                Looks like a taglib problem... isn't it?

                when you said to remove duplicate jars, you removed from where?

                I just have the jstl.jar and standard.jar in my WAR file, and that's it...

                I don't have it anywhere else but the error persists.... I have no ideia about what to do.... thanks for any help!

                Regards, Vitor Isaia, Brasil.