3 Replies Latest reply on Apr 7, 2015 1:52 AM by chaitanya chaitanya

    Issue in Jboss migration 5.1 to 6.0.0.M2

    chaitanya chaitanya Newbie

      Hi,

       

      We are migrating our application form Jboss 5.1 to 6.0.0.M2 . Application is on struts 1.1 . We are facing and issue which already exists i.e

      JBAS-8579.


      But the description clearly mentions that its because of the bodycontent tag not available in struts-html.tld. But we have it clearly present in struts-html.tld and struts.jar.


      Can you please help.


      We want to stick to 6.0.0.M2 as we have a dependency on JMS which needs to migrated to HornetQ is we go for earlier versions.


      Thanks,

      Chaitanya.

        • 1. Re: Issue in Jboss migration 5.1 to 6.0.0.M2
          jaikiran pai Master

          Please post the entire exception stacktrace and relevant configuration and tld files.

          • 2. Re: Issue in Jboss migration 5.1 to 6.0.0.M2
            chaitanya chaitanya Newbie

            Thanks in advance Jaikiran.

             

            Exception Stack Trace:

            2015-04-01 16:28:49,720 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] (http-127.0.0.1-8080-44) Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException

                at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1590)

                at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:972)

                at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1243)

                at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1417)

                at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1625)

                at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:972)

                at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1243)

                at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1417)

                at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1625)

                at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:972)

                at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1243)

                at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1417)

                at org.apache.jasper.compiler.Parser.parse(Parser.java:130)

                at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)

                at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)

                at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:181)

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

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

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

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

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

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

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

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

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)

                at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639)

                at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576)

                at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)

                at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:621)

                at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)

                at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)

                at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)

                at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)

                at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)

                at org.apache.jsp.common.layouts.hmsi_005ftwoPanelTemplate_jsp._jspx_meth_tiles_005fget_005f3(hmsi_005ftwoPanelTemplate_jsp.java:259)

                at org.apache.jsp.common.layouts.hmsi_005ftwoPanelTemplate_jsp._jspService(hmsi_005ftwoPanelTemplate_jsp.java:117)

                at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

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

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

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

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

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

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)

                at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)

                at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)

                at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)

                at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

                at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)

                at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)

                at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)

                at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

                at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

                at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

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

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

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                at com.hmco.hmsi.webapp.common.util.TimeTrackerFilter.doFilter(TimeTrackerFilter.java:74)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                at com.hmco.hmsi.webapp.common.util.ContentTypeFilter.doFilter(ContentTypeFilter.java:72)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                at com.hmco.hmsi.webapp.usermetrics.struts.PageViewMetricsFilter.doFilter(PageViewMetricsFilter.java:81)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                at com.hmco.hmsi.server.login.MDCServletFilter.doFilter(MDCServletFilter.java:39)

                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)

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

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

                at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

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

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

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

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

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

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

             

             

            Part of struts-html.tld

             

            <tag>

            <name>html</name>

            <tagclass>org.apache.struts.taglib.html.HtmlTag</tagclass>

            <bodycontent>JSP</bodycontent>

            <attribute>

            <name>locale</name>

            <required>false</required>

            <rtexprvalue>true</rtexprvalue>

            </attribute>

            <attribute>

            <name>xhtml</name>

            <required>false</required>

            <rtexprvalue>true</rtexprvalue>

            </attribute>

            </tag>

            <tag>

            • 3. Re: Issue in Jboss migration 5.1 to 6.0.0.M2
              chaitanya chaitanya Newbie

              Thanks in advance Jaikiran.

               

              Exception Stack Trace:

              2015-04-01 16:28:49,720 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] (http-127.0.0.1-8080-44) Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException

                  at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1590)

                  at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:972)

                  at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1243)

                  at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1417)

                  at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1625)

                  at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:972)

                  at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1243)

                  at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1417)

                  at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1625)

                  at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:972)

                  at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1243)

                  at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1417)

                  at org.apache.jasper.compiler.Parser.parse(Parser.java:130)

                  at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)

                  at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)

                  at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:181)

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

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

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

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

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

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

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

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

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)

                  at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639)

                  at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576)

                  at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)

                  at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:621)

                  at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)

                  at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)

                  at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)

                  at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)

                  at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)

                  at org.apache.jsp.common.layouts.hmsi_005ftwoPanelTemplate_jsp._jspx_meth_tiles_005fget_005f3(hmsi_005ftwoPanelTemplate_jsp.java:259)

                  at org.apache.jsp.common.layouts.hmsi_005ftwoPanelTemplate_jsp._jspService(hmsi_005ftwoPanelTemplate_jsp.java:117)

                  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

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

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

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

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

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

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)

                  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)

                  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)

                  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)

                  at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)

                  at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)

                  at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)

                  at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)

                  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)

                  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

                  at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)

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

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

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                  at com.hmco.hmsi.webapp.common.util.TimeTrackerFilter.doFilter(TimeTrackerFilter.java:74)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                  at com.hmco.hmsi.webapp.common.util.ContentTypeFilter.doFilter(ContentTypeFilter.java:72)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                  at com.hmco.hmsi.webapp.usermetrics.struts.PageViewMetricsFilter.doFilter(PageViewMetricsFilter.java:81)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                  at com.hmco.hmsi.server.login.MDCServletFilter.doFilter(MDCServletFilter.java:39)

                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)

                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)

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

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

                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)

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

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

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

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

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

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

               

               

              Part of struts-html.tld

               

              <tag>

              <name>html</name>

              <tagclass>org.apache.struts.taglib.html.HtmlTag</tagclass>

              <bodycontent>JSP</bodycontent>

              <attribute>

              <name>locale</name>

              <required>false</required>

              <rtexprvalue>true</rtexprvalue>

              </attribute>

              <attribute>

              <name>xhtml</name>

              <required>false</required>

              <rtexprvalue>true</rtexprvalue>

              </attribute>

              </tag>

              <tag>