1 Reply Latest reply on Dec 29, 2011 1:10 AM by Sridhar Iyer

    JSP Compilation error in 5.1.0

    Sridhar Iyer Newbie

      Hi

      I am new to JBoss tried to deploy some war files which work perfectly in IBM Websphere but find this error when tried to deploy the same in JBoss 5.1.0 AS. Tried searching the net found some suggestion remove the jar of jsp/servelet-api/ logging etc from WEB-INF of the application and i did, but still no luck. Suggestion on the error is appreciated. Is it an issue with 5.1.0 because no such error came when the same war was deployed in 5.0.1

       

       

      17:17:04,700 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
      org.apache.jasper.JasperException: Unable to compile class for JSP:

      An error occurred at line: 22 in the generated java file
      The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory

      Stacktrace:
              at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
              at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
              at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:335)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:313)
              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:300)
              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
              at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:637)
      17:17:04,705 ERROR [[action]] Servlet.service() for servlet action threw exception
      javax.servlet.ServletException: non-HTTP request or response
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:851)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:446)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
              at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:416)
              at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:270)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:637)
      17:17:04,707 ERROR [[localhost]] Exception Processing ErrorPage[exceptionType=java.lang.Exception, location=/errorpage.do]
      javax.servlet.ServletException: non-HTTP request or response
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:851)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:446)
              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
              at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:416)
              at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:270)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
              at java.lang.Thread.run(Thread.java:637)