2 Replies Latest reply on Jan 15, 2016 8:40 AM by Vitor Rodrigues

    Wildfly 10 - JSP Error

    Vitor Rodrigues Newbie

      Hey,

       

      I'm using Wildfly 10(CR5). When i'm running my application, it gives me this error. Help?

       

      P.S I know that there is no need for that variable but the problem is that it doesn't work.

      P.S.2 We migrated from Jboss 4.2 to JBoss 7.1. This worked on Jboss 7. But doesn't work on Wildfly 10. Any thoughts?

      P.S.3 It doesn't work on Wildfly 9.0.2 Final also

      Error:

       11:28:53,435 ERROR [io.undertow.servlet] (default task-2) Unable to forward request. requestEvent=/loadAccountingDetails, nextPage=/wui/create/AccountItems_CostCenter_BizDirect.jsp,locale=pt: org.apache.jasper.JasperException: JBWEB004062: Unable to compile class for JSP: 
      JBWEB004060: An error occurred at line: 66 in the jsp file: /wui/create/AccountItems_CostCenter_BizDirect.jsp
      includePage1 cannot be resolved to a variable
      63:       </table>
      64:       <% if (fromTransferShip) { %>
      65:         <% includepage1="/wui/global/OkNavigation_BizDirect.jsp?ORIENTATION=BOTTOM"; %>
      66:         <jsp:include page='<%=includePage1%>'/>
      67:       <% } else { %>
      68:         <jsp:include page="/wui/global/PrevNextSummaryNavigation.jsp?ORIENTATION=BOTTOM"/>
      69:       <% } %>
      
      
      

       

       

      JSP Code

      <table width="90%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="/wui/images/clear.gif" height="3" width="400"></td>
              </tr>
            </table>
            <%String includepage1="";
      if (fromTransferShip) { %>
              <% includepage1="/wui/global/OkNavigation_BizDirect.jsp?ORIENTATION=BOTTOM"; %>
              <jsp:include page='<%=includePage1%>'/>
            <% } else { %>
              <jsp:include page="/wui/global/PrevNextSummaryNavigation.jsp?ORIENTATION=BOTTOM"/>
            <% } %>
            <br>
      
      
      

       

       

      Stacktrace

      Stacktrace:
        at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:95)
        at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:198)
        at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:449)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:359)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:321)
        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:652)
        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.FilterHandler.handleRequest(FilterHandler.java:81)
        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 io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        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.dispatchRequest(ServletInitialHandler.java:265)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToServlet(ServletInitialHandler.java:210)
        at io.undertow.servlet.spec.RequestDispatcherImpl.includeImpl(RequestDispatcherImpl.java:343)
        at io.undertow.servlet.spec.RequestDispatcherImpl.include(RequestDispatcherImpl.java:256)
        at tradeex.ec4.servlets.TXHttpServlet.forward(TXHttpServlet.java:630)
        at tradeex.ec4.servlets.TXHttpServlet.invokeRequest(TXHttpServlet.java:240)
        at tradeex.ec4.servlets.TXHttpServlet.processRequest(TXHttpServlet.java:500)
        at tradeex.ec4.servlets.TXHttpServlet.doGet(TXHttpServlet.java:320)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:81)
        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        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.dispatchRequest(ServletInitialHandler.java:265)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:200)
        at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:193)
        at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:106)
        at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:722)
        at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:695)
        at org.apache.jsp.wui.global.NavigationRedirect_jsp._jspService(NavigationRedirect_jsp.java:118)
        at tradeex.ec4.jsp.TXHttpJspPage.service(TXHttpJspPage.java:117)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:433)
        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.FilterHandler.handleRequest(FilterHandler.java:81)
        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 io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        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.dispatchRequest(ServletInitialHandler.java:265)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToServlet(ServletInitialHandler.java:210)
        at io.undertow.servlet.spec.RequestDispatcherImpl.includeImpl(RequestDispatcherImpl.java:343)
        at io.undertow.servlet.spec.RequestDispatcherImpl.include(RequestDispatcherImpl.java:256)
        at tradeex.ec4.servlets.TXHttpServlet.forward(TXHttpServlet.java:630)
        at tradeex.ec4.servlets.TXHttpServlet.invokeRequest(TXHttpServlet.java:240)
        at tradeex.ec4.servlets.TXHttpServlet.processRequest(TXHttpServlet.java:500)
        at tradeex.ec4.servlets.TXHttpServlet.doGet(TXHttpServlet.java:320)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
        at tradeex.ec4.filters.TrimFilter.doFilter(TrimFilter.java:33)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at tradeex.ec4.filters.GZIPFilter.doFilter(GZIPFilter.java:26)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
        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.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
        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:284)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)