2 Replies Latest reply on Jan 28, 2011 4:14 AM by Dinesh venkatesan

    Unable to compile class for JSP

    Dinesh venkatesan Newbie

      Hi,

       

      I am using Jboss 4.2.3 .If i start the server i am getting some exception.

       

      I am using Ear file and deploy in default folder.

       

      19:37:23,427 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception

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

       

      An error occurred at line: 76 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:415)

              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)

              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)

              at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)

              at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)

              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)

              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)

              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

              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:230)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

              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:157)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

              at java.lang.Thread.run(Unknown Source)

       

       

      plz anyone help me.

       

      Thanks in advance

      Dinesh