1 Reply Latest reply on Jun 8, 2017 6:49 AM by Anup Dey

    JBOSS 7.0.2 and JDK jdk1.8.0_112 -JBWEB004001: Unable to compile class for JSP error

    Archana Sridharan Newbie

      Hello,

      I have a JSP page being invoked and get this error message in my JBOSS log. please help.

       

      16:20:46,792 ERROR [io.undertow.request] (default task-36) UT005023: Exception handling request to /ProChannelExt/InitiativeMapping.jsp: org.apache.jasper.JasperException: JBWEB004001: Unable to compile class for JSP

       

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

       

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

       

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

       

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

       

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

       

          at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

       

          at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

       

          at io.undertow.jsp.JspFileHandler.handleRequest(JspFileHandler.java:32)

       

          at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

       

          at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

       

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

       

          at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

       

          at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)

       

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

       

          at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)

       

          at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)

       

          at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)

       

          at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59)

       

          at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)

       

          at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)

       

          at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)

       

          at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)

       

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

       

          at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

       

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

       

          at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

       

          at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:285)

       

          at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:264)

       

          at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)

       

          at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:175)

       

          at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)

       

          at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:802)

       

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

       

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

       

          at java.lang.Thread.run(Thread.java:745)

        • 1. Re: JBOSS 7.0.2 and JDK jdk1.8.0_112 -JBWEB004001: Unable to compile class for JSP error
          Anup Dey Apprentice

          JBoss was previously started as the root user, resulting in directories under the JBoss tmp directory being owned by root. JBoss is then unable to write compiled JSP classes to these directories when not run as root.

           

          - Delete the JBoss tmp directory so it can be recreated with the proper ownership and permissions

          - Avoid concurrent requests for a session while it is being expired.

          - Address the source of any unexpected session invalidations.

          - Check that the include JSP file is inside a JAR file.

          - Check that the JSP file is included using a non-normalized path (the path includes "." or ".." directories).