1 Reply Latest reply on Feb 29, 2004 1:53 PM by hermes333

    problem:unable to compile jsp for redeployed jsp-s in a war.

    uramisten Newbie

       

      "uramisten" wrote:
      I have a war file (jpivot.war to be axact). If it is in the deploy directory on startup, all is fine. If I deploy it once, all works fine. If I redeploy it after having accessed any of the jsp pages, then I get an "org.apache.jasper.JasperException: Unable to compile class for JSP" error as follows (includes log from undeploy and redeploy)

      16:50:48,975 INFO [EmbeddedTomcatService] undeploy, ctxPath=/jpivot, warUrl=file:/usr/local/apps/jboss/jboss-3.2.3/server/hibernate/tmp/deploy/tmp39863jpivot.war/
      16:50:48,977 INFO [Engine] StandardHost[localhost]: Removing web application at context path /jpivot
      16:50:48,992 INFO [Engine] JspServlet.destroy()
      16:50:54,195 INFO [MainDeployer] Starting deployment of package: file:/usr/local/apps/jboss/jboss-3.2.3/server/hibernate/deploy/jpivot.war
      16:50:56,013 INFO [EmbeddedTomcatService] deploy, ctxPath=/jpivot, warUrl=file:/usr/local/apps/jboss/jboss-3.2.3/server/hibernate/tmp/deploy/tmp39892jpivot.war/
      16:50:58,795 INFO [Engine] SingleSignOnContextConfig[/jpivot]: Added certificates -> request attribute Valve
      16:50:58,867 WARN [EmbeddedTomcatService] Unable to invoke setDelegate on class loader:org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@192ee25
      16:50:58,868 INFO [Engine] StandardManager[/jpivot]: Seeding random number generator class java.security.SecureRandom
      16:50:58,869 INFO [Engine] StandardManager[/jpivot]: Seeding of random number generator has been completed
      16:50:58,882 INFO [Engine] StandardWrapper[/jpivot:default]: Loading container servlet default
      16:50:58,888 INFO [Engine] StandardWrapper[/jpivot:invoker]: Loading container servlet invoker
      16:50:58,889 INFO [Engine] Parent class loader is: org.jboss.web.tomcat.tc4.WebCtxLoader$ENCLoader@192ee25
      16:50:58,891 INFO [Engine] Scratch dir for the JSP engine is: /usr/local/apps/jboss/jboss-3.2.3/server/hibernate/work/MainEngine/localhost/jpivot
      16:50:58,892 INFO [Engine] IMPORTANT: Do not modify the generated servlets
      16:50:59,347 INFO [MainDeployer] Deployed package: file:/usr/local/apps/jboss/jboss-3.2.3/server/hibernate/deploy/jpivot.war
      16:51:03,666 INFO [Engine] JspEngine --> /index.jsp
      16:51:03,667 INFO [Engine] ServletPath: /index.jsp
      16:51:03,668 INFO [Engine] PathInfo: null
      16:51:03,668 INFO [Engine] RealPath: /usr/local/apps/jboss/jboss-3.2.3/server/hibernate/tmp/deploy/tmp39892jpivot.war/index.jsp
      16:51:03,668 INFO [Engine] RequestURI: /jpivot/index.jsp
      16:51:03,669 INFO [Engine] QueryString: null
      16:51:03,669 INFO [Engine] Request Params:
      16:51:03,729 ERROR [RequestFilter] handleRequest failed
      org.apache.jasper.JasperException: Unable to compile class for JSP
       at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:478)
       at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
       at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
       at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
       at com.tonbeller.wcf.controller.RequestFilter$MyHandler.normalRequest(RequestFilter.java:111)
       at com.tonbeller.wcf.controller.RequestSynchronizer.handleRequest(RequestSynchronizer.java:102)
       at com.tonbeller.wcf.controller.RequestFilter.doFilter(RequestFilter.java:137)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
       at org.jboss.web.tomcat.security.JBossSecurityMgrRealm.invoke(JBossSecurityMgrRealm.java:220)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.jboss.web.tomcat.tc4.statistics.ContainerStatsValve.invoke(ContainerStatsValve.java:76)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
       at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
       at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:65)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:577)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
       at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
       at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
       at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
       at java.lang.Thread.run(Thread.java:534)
      



      error...
      I checked the work directory and the .java source files are created (and diff shows as identical to those generated when it works fine..) but for some reason it can't compile them. the only way to get it working again is to restart jboss (not good). Anyone have any ideas? I'm clueless here.. - some web.xml setting? some reference lost, or session or.. pass.. :(
      Thnx
      Ati.