0 Replies Latest reply on Mar 10, 2015 6:14 PM by Narendra Chennareddy

    Issues with undertow in Wildfly. Need help!!!

    Narendra Chennareddy Newbie

      Hi,

       

      I migrated from JBoss AS7.2 to Wildfly. The web subsystem has been replaced with Undertow subsystem in wildfly and I am getting exceptions while trying to access few webpages. These weblinks used to work in JBoss AS7.2 . No code changes has been made on our end. I expect them to work after migration.

       

      I am getting the following stacktrace when I am trying to access the edit_multipleusers url ( see attached web.xml that I am using for servlet mapping). After getting the exception I monitored the HttpServletRequest object to see the attributes and I noticed the following

       

      {javax.servlet.include.servlet_path=/config/edit_multipleusers/, javax.servlet.forward.request_uri=/portware/config/, javax.servlet.forward.query_string=function=%2Fconfig%2Fedit_multipleusers%2F, javax.servlet.include.path_info=null, javax.servlet.forward.path_info=null, javax.servlet.include.query_string=, javax.servlet.forward.context_path=/portware, javax.servlet.request.key_size=128, javax.servlet.request.ssl_session_id=[B@4fbb8c0c, javax.servlet.forward.servlet_path=/config/, javax.servlet.include.context_path=/portware, javax.servlet.include.request_uri=/portware/config/edit_multipleusers/, javax.servlet.request.cipher_suite=TLS_DHE_DSS_WITH_AES_128_CBC_SHA, clearBean=true}

       

      As per JspUtil.makeJavaIdentifier API, it is looking for serverclassname after last occurrence of / in javax.servlet.include.servlet_path which is blank . Hence I am getting following exception. These attributes are not set by my code. In JBoss7.2 I noticed the attributes as below. Can anyone tell me how to fix the issue ? Do I have to do any additional configuration to make this work? I have also attached my standalone.xml and server.log file .

       

      {javax.servlet.include.servlet_path=null, javax.servlet.forward.request_uri=/portware/config/, javax.servlet.forward.query_string=function=%2Fdwr-enable%2Fconfigmanager%2F, javax.servlet.include.path_info=null, javax.servlet.forward.path_info=null, javax.servlet.include.query_string=null, javax.servlet.forward.context_path=/portware, javax.servlet.request.key_size=128, javax.servlet.request.ssl_session_id=[B@587b86, javax.servlet.forward.servlet_path=/config/, javax.servlet.include.context_path=null, javax.servlet.include.request_uri=null, javax.servlet.request.cipher_suite=TLS_DHE_DSS_WITH_AES_128_CBC_SHA, clearBean=true}

       

       

      Stacktrace:

       

          [java] 17:41:03,733 ERROR [stderr] (default task-10) org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0

          [java] 17:41:03,733 ERROR [stderr] (default task-10) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:350)

          [java] 17:41:03,733 ERROR [stderr] (default task-10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

          [java] 17:41:03,733 ERROR [stderr] (default task-10) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)

          [java] 17:41:03,733 ERROR [stderr] (default task-10) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

          [java] 17:41:03,733 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

          [java] 17:41:03,733 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

          [java] 17:41:03,733 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:192)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:160)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at com.indigo.web.servlet.config.MultipleUserServlet.processRequest(MultipleUserServlet.java:200)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at com.indigo.web.servlet.config.AbstractConfigServlet.doConfigPost(AbstractConfigServlet.java:98)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at com.indigo.web.servlet.config.AbstractConfigServlet.doPost(AbstractConfigServlet.java:85)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at com.indigo.web.servlet.config.AbstractConfigServlet.doGet(AbstractConfigServlet.java:73)

          [java] 17:41:03,734 ERROR [stderr] (default task-10) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToServlet(ServletInitialHandler.java:198)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at io.undertow.servlet.spec.RequestDispatcherImpl.include(RequestDispatcherImpl.java:279)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:322)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:173)

          [java] 17:41:03,735 ERROR [stderr] (default task-10) at org.apache.jsp.config.contentDelivery_jsp._jspx_meth_c_005fimport_005f2(contentDelivery_jsp.java:4081)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at org.apache.jsp.config.contentDelivery_jsp._jspx_meth_c_005fotherwise_005f0(contentDelivery_jsp.java:4051)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at org.apache.jsp.config.contentDelivery_jsp._jspx_meth_c_005fchoose_005f0(contentDelivery_jsp.java:3962)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at org.apache.jsp.config.contentDelivery_jsp._jspService(contentDelivery_jsp.java:316)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:366)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

          [java] 17:41:03,736 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:249)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchToPath(ServletInitialHandler.java:192)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at io.undertow.servlet.spec.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:160)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at com.indigo.web.servlet.config.ContentDeliveryServlet.processRequest(ContentDeliveryServlet.java:77)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at com.indigo.web.servlet.config.AbstractConfigServlet.doConfigPost(AbstractConfigServlet.java:98)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at com.indigo.web.servlet.config.AbstractConfigServlet.doPost(AbstractConfigServlet.java:85)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at com.indigo.web.servlet.config.AbstractConfigServlet.doGet(AbstractConfigServlet.java:73)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)

          [java] 17:41:03,737 ERROR [stderr] (default task-10) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:63)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

          [java] 17:41:03,738 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:261)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:247)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:76)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:166)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:197)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:759)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) at java.lang.Thread.run(Thread.java:745)

          [java] 17:41:03,739 ERROR [stderr] (default task-10) Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0

          [java] 17:41:03,740 ERROR [stderr] (default task-10) at java.lang.String.charAt(String.java:646)

          [java] 17:41:03,740 ERROR [stderr] (default task-10) at org.apache.jasper.compiler.JspUtil.makeJavaIdentifier(JspUtil.java:972)

          [java] 17:41:03,740 ERROR [stderr] (default task-10) at org.apache.jasper.JspCompilationContext.getServletClassName(JspCompilationContext.java:379)

          [java] 17:41:03,740 ERROR [stderr] (default task-10) at org.apache.jasper.JspCompilationContext.getClassFileName(JspCompilationContext.java:519)

          [java] 17:41:03,740 ERROR [stderr] (default task-10) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:455)

          [java] 17:41:03,740 ERROR [stderr] (default task-10) at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:403)

          [java] 17:41:03,740 ERROR [stderr] (default task-10) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:600)

          [java] 17:41:03,740 ERROR [stderr] (default task-10) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:309)

          [java] 17:41:03,740 ERROR [stderr] (default task-10) ... 80 more