2 Replies Latest reply on Mar 3, 2007 12:53 PM by Elhanan Maayan

    Unstable JasperException in jsp compilation of custom taglib

    Elhanan Maayan Novice

      hi.

      my company has developed a web framework development, on jboss 3.2.5

      sometimes when this framework is deployed, and after starting jboss, and access a page, the new jsp will not compile, the error seems to be with custom taglibs classes our company is using, the jsp itself is ok (i copied directly to our IDE and included all the jars).
      the error says the method signatues won't apply to the paramters being sent to it (not ture, the signature is based on the base interfaces of the actuall classes of the taglibs we are sending).

      here is what's funny, when i get this error, what i do is copy the entire jboss directory to a new loation (like for example c:\3.2.5 instead of c:\java_app\jboss\3.2.5), and then it works, the new location doesn't have to constant , i could for example to:
      c:\sagi\3.2.5, and it would still work, but not all new location apply. (in some of them i will get error).

      so what's going on?

        • 1. Re: Unstable JasperException in jsp compilation of custom ta
          jaikiran pai Master

          Can you post the exception stacktrace that you are seeing?

          • 2. Re: Unstable JasperException in jsp compilation of custom ta
            Elhanan Maayan Novice

            sure here it is: (com.pnx.pmp is our frameworks' package).

            28 ??? 2007 19:11:19,734 [DEBUG] com.pnx.pmp.common.log.PerformanceWatch -
            com.pnx.pmp.ui.webapp.view.error.ErrorServlet - Exception (processing [/pmp/flow.pmp]): [com.pnx.pmp.common.exceptions.SystemException: org.apache.jasper.JasperException: Unable to compile class for JSP

            An error occurred at line: 5 in the jsp file: /underwrite/view/jsp/handleapplication/handle_application/handleApplication.jsp
            Generated servlet error:
            C:\java_app\jboss\3.2.5\server\pmp\work\jboss.web\localhost\pmp\org\apache\jsp\underwrite\view\jsp\handleapplication\handle_005fapplication\handleApplication_jsp.java:123: _jspx_meth_pmp_textField_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.underwrite.view.jsp.handleapplication.handle_005fapplication.handleApplication_jsp cannot be applied to (com.pnx.pmp.ui.webapp.view.jsp.PanelTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_pmp_textField_0(_jspx_th_pmp_panel_0, _jspx_page_context))
            ^
            1 error


            ]
            com.pnx.pmp.common.exceptions.SystemException: org.apache.jasper.JasperException: Unable to compile class for JSP

            An error occurred at line: 5 in the jsp file: /underwrite/view/jsp/handleapplication/handle_application/handleApplication.jsp
            Generated servlet error:
            C:\java_app\jboss\3.2.5\server\pmp\work\jboss.web\localhost\pmp\org\apache\jsp\underwrite\view\jsp\handleapplication\handle_005fapplication\handleApplication_jsp.java:123: _jspx_meth_pmp_textField_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.underwrite.view.jsp.handleapplication.handle_005fapplication.handleApplication_jsp cannot be applied to (com.pnx.pmp.ui.webapp.view.jsp.PanelTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_pmp_textField_0(_jspx_th_pmp_panel_0, _jspx_page_context))
            ^
            1 error



            at com.pnx.pmp.ui.webapp.view.jsp.JspIncludeManager.include(JspIncludeManager.java:52)
            at com.pnx.pmp.ui.webapp.utils.PmpPageContext.doExecute(PmpPageContext.java:155)
            at com.pnx.pmp.ui.webapp.xwork.MicroflowResult.doExecute(MicroflowResult.java:71)
            at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:143)
            at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:311)
            at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:206)
            at com.pnx.pmp.ui.webapp.xwork.NewLoginInterceptor.intercept(NewLoginInterceptor.java:110)
            at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)
            at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
            at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:225)
            at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at com.pnx.pmp.ui.webapp.xwork.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:39)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
            at java.lang.Thread.run(Thread.java:534)
            Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP

            An error occurred at line: 5 in the jsp file: /underwrite/view/jsp/handleapplication/handle_application/handleApplication.jsp
            Generated servlet error:
            C:\java_app\jboss\3.2.5\server\pmp\work\jboss.web\localhost\pmp\org\apache\jsp\underwrite\view\jsp\handleapplication\handle_005fapplication\handleApplication_jsp.java:123: _jspx_meth_pmp_textField_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.underwrite.view.jsp.handleapplication.handle_005fapplication.handleApplication_jsp cannot be applied to (com.pnx.pmp.ui.webapp.view.jsp.PanelTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_pmp_textField_0(_jspx_th_pmp_panel_0, _jspx_page_context))
            ^
            1 error



            at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
            at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
            at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
            at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
            at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
            at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
            at com.pnx.pmp.ui.webapp.view.jsp.JspIncludeManager.include(JspIncludeManager.java:50)
            ... 41 more
            28 ??? 2007 19:11:19,750 [ERROR] com.pnx.pmp.ui.webapp.view.error.ErrorServlet - Exception (processing [/pmp/flow.pmp]): [org.apache.jasper.JasperException: Unable to compile class for JSP

            An error occurred at line: 5 in the jsp file: /underwrite/view/jsp/handleapplication/handle_application/handleApplication.jsp
            Generated servlet error:
            C:\java_app\jboss\3.2.5\server\pmp\work\jboss.web\localhost\pmp\org\apache\jsp\underwrite\view\jsp\handleapplication\handle_005fapplication\handleApplication_jsp.java:123: _jspx_meth_pmp_textField_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.underwrite.view.jsp.handleapplication.handle_005fapplication.handleApplication_jsp cannot be applied to (com.pnx.pmp.ui.webapp.view.jsp.PanelTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_pmp_textField_0(_jspx_th_pmp_panel_0, _jspx_page_context))
            ^
            1 error


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

            An error occurred at line: 5 in the jsp file: /underwrite/view/jsp/handleapplication/handle_application/handleApplication.jsp
            Generated servlet error:
            C:\java_app\jboss\3.2.5\server\pmp\work\jboss.web\localhost\pmp\org\apache\jsp\underwrite\view\jsp\handleapplication\handle_005fapplication\handleApplication_jsp.java:123: _jspx_meth_pmp_textField_0(javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.PageContext) in org.apache.jsp.underwrite.view.jsp.handleapplication.handle_005fapplication.handleApplication_jsp cannot be applied to (com.pnx.pmp.ui.webapp.view.jsp.PanelTag,javax.servlet.jsp.PageContext)
            if (_jspx_meth_pmp_textField_0(_jspx_th_pmp_panel_0, _jspx_page_context))
            ^
            1 error



            at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
            at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
            at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
            at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
            at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
            at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
            at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
            at com.pnx.pmp.ui.webapp.view.jsp.JspIncludeManager.include(JspIncludeManager.java:50)
            at com.pnx.pmp.ui.webapp.utils.PmpPageContext.doExecute(PmpPageContext.java:155)
            at com.pnx.pmp.ui.webapp.xwork.MicroflowResult.doExecute(MicroflowResult.java:71)
            at com.opensymphony.webwork.dispatcher.WebWorkResultSupport.execute(WebWorkResultSupport.java:143)
            at com.opensymphony.xwork.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:311)
            at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:206)
            at com.pnx.pmp.ui.webapp.xwork.NewLoginInterceptor.intercept(NewLoginInterceptor.java:110)
            at com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:188)
            at com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:113)
            at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:225)
            at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:202)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at com.pnx.pmp.ui.webapp.xwork.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:39)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:72)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:275)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
            at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
            at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
            at java.lang.Thread.run(Thread.java:534)