1 Reply Latest reply on Sep 13, 2007 12:00 PM by Matteo Maria Pileggi

    problem with jboss-3.2.5/tomcat and java 1.5

    Matteo Maria Pileggi Newbie

      Hi all!
      I've a problem to compile a jsp on my tomcat (under jboss-3.2.5) since I change my JDK (from 1.4.2 to 1.5).

      in particular I read this error:

      2007-09-11 12:17:02,134 ERROR [org.jboss.web.localhost.Engine] StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP
      
      Generated servlet error:
      Note: Recompile with -Xlint:unchecked for details.
      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:802)
       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.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:595)
      


      This is a blocking error and it obligates me to go back to java 1.4.2
      Someone can help me?

      Cheers,
      Matpil

        • 1. Re: problem with jboss-3.2.5/tomcat and java 1.5
          Matteo Maria Pileggi Newbie

          I have noticed that all tomcat-deployed applications doesn't work! Also the JMX-CONSOLE gives me the same error...

          From my browser:

          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
           org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)
           org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)
           org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
           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)
          
          
          root cause
          
          Compile failed; see the compiler error output for details.
           org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:944)
           org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
           org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
           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)
          
          
          note The full stack trace of the root cause is available in the Apache Tomcat/5.0.26 logs.
          
          


          Any suggestion?