3 Replies Latest reply on Sep 18, 2014 3:33 AM by Manoj Gite

    JBOSS 5 to 7 Migration Issues

    Manoj Gite Newbie

      Project Env - EJB2.0, Struts 1.2, Spring 2.5, Java 6

       

      While deploying the application EAR file containing 3 war and several ejb jars on JBOSS EAP 6.3.0, we are getting issues -

       

      06:41:54,258 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/dwm]] (ServerService Thread Pool -- 191) JBWEB000289: Servlet action threw load() exception: java.lang.VerifyError: (class: org/apache/commons/digester/Digester, method: createSAXException signature: (Ljava/lang/String;Ljava/lang/Exception;)Lorg/xml/sax/SAXException;) Wrong return type in function
      at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1079) [struts.jar:1.2.4]
      at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) [struts.jar:1.2.4]

       

      We have specified the dependencies in MANIFEST.MF file for struts.jar which is dependent on several jars internally and while referring to commons-digestor.jar, it is giving above stacktrace.

      We tried alternate approaches suggested on various blogs and forums, still we are not able to get the resolution for it.jaikiran eschabell

        • 1. Re: JBOSS 5 to 7 Migration Issues
          jaikiran pai Master

          What does your MANIFEST.MF look like? Do you have any jboss-deployment-structure.xml file? If yes, what does it look like? Are you packaging the commons-digester.jar either as part of your application or as a JBoss Module?

          • 2. Re: JBOSS 5 to 7 Migration Issues
            Manoj Gite Newbie

            I am using commons-digestor.jar as a JBoss Module and it is nowhere packaged in the application ear file.

             

            EAR structure -

            ApplicationDWM.ear containing 3 wars (dwm.war, dwm2.war, dwm3.war) and 15 ejb2 jars.

             

            MANIFEST.MF file looks like -

             

            Manifest-Version: 1.0

            Ant-Version: Apache Ant 1.6.5

            Created-By: 1.5.0_06-b05 (Sun Microsystems Inc.)

            Dependencies: org.apache.struts,org.apache.commons.betwixt,org.apache.axis,org.ojdbc,org.hibernate,org.antlr,org.apache.asm,org.apache.axiom,org.apache.axis,org.apache.commons.io,org.apache.commons.lang,org.apache.httpcomponents,org.jdom,org.javassist,org.apache.neethi,javax.wsdl4j.api,org.codehaus.woodstox,ext.activation.com.sun.activation,ext.axis2-adb.org.apache.axis2,ext.axis2-adb-codegen.org.apache.axis2.schema,ext.axis2-ant-plugin.org.apache,ext.axis2-clustering.org.apache.axis2.clustering,ext.axis2-codegen.org.apache.axis2.wsdl,ext.axis2-corba.org.apache.axis2.corba,ext.axis2-fastinfoset.org.apache.axis2.fastinfoset,ext.axis2-java2wsdl.org.apache.ws.java2wsdl,ext.axis2-jaxbri.org.apache.axis2.jaxbri,ext.axis2-jaxws.org.apache.axis2.jaxws,ext.axis2-jibx.org.apache.axis2.jibx,ext.axis2-json.org.apache.axis2.json,ext.axis2-kernel.org.apache.axis2,ext.axis2-metadata.org.apache.axis2,ext.axis2-mtompolicy.org.apache.axis2.policy,ext.axis2-saaj.org.apache.axis2.saaj,ext.axis2-soapmonitor-servlet.org.apache.axis2.soapmonitor,ext.axis2-soapmonitor-servlet.org.apache.axis2.soapmonitor,ext.axis2-transport-http.org.apache.axis2.transport,ext.axis2-transport-local.org.apache.axis2.transport.local,ext.axis2-xmlbeans.org.apache.axis2.xmlbeans,ext.commons-fileupload.org.apache.commons.fileupload,ext.commons-httpclient.org.apache.commons.httpclient

             

             

            And, I do have jboss-deployment-structure.xml file inside ./webroot/dwm/WEB-INF/ folder for war dwm.war as -

             

            <jboss-deployment-structure>

              <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

              <sub-deployment name="dwm.war">

                <dependencies>

                  <module name="deployment.ApplicationDWM.ear.logon-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.dwmadmin-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.rehab-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.dle-ejb.jar" />

                  <module name="deployment.ApplicationDWM.ear.rehabcost-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.dlecost-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.bpcComp-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.frv-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.bdpr-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.bpc-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.rehabudgetreport-ejb.jar" />

                  <module name="deployment.ApplicationDWM.ear.rehabbudget-ejb.jar" />

                  <module name="deployment.ApplicationDWM.ear.geounit-ejb.jar" />

                  <module name="deployment.ApplicationDWM.ear.report-post.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.report-ejb.jar" />

                </dependencies>

              </sub-deployment>

             

             

            I have this file inside ./webroot/dwm2/WEB-INF/ folder for dwm2.war as -

             

            <jboss-deployment-structure>

              <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

              <sub-deployment name="dwm2.war">

                <dependencies>

                  <module name="deployment.ApplicationDWM.ear.logon-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.dwmadmin-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.rehab-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.dle-ejb.jar" />

                  <module name="deployment.ApplicationDWM.ear.rehabcost-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.dlecost-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.bpcComp-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.frv-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.bdpr-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.bpc-ejb.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.rehabudgetreport-ejb.jar" />

                  <module name="deployment.ApplicationDWM.ear.rehabbudget-ejb.jar" />

                  <module name="deployment.ApplicationDWM.ear.geounit-ejb.jar" />

                  <module name="deployment.ApplicationDWM.ear.report-post.jar" /> 

                  <module name="deployment.ApplicationDWM.ear.report-ejb.jar" />

                </dependencies>

              </sub-deployment>

             

             

            And for dwm3.war if is as below -

             

            <jboss-deployment-structure>

              <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

              <sub-deployment name="dwm3.war">

              </sub-deployment>

            </jboss-deployment-structure>

             

             

            I tried removing the jboss-deployment-structure.xml as well but still getting this error.

             

            Struts module in jboss containing Module.xml is as below -

             

            <?xml version="1.0" encoding="UTF-8"?>

            <module xmlns="urn:jboss:module:1.1" name="org.apache.struts">

                <resources>

                    <resource-root path="struts.jar"/>   

                </resources>

              <dependencies>

                    <module name="org.apache.commons.logging"/>

              <module name="org.apache.commons.digester"/>

                    <module name="org.apache.commons.collections"/>

              <module name="org.apache.commons.beanutils"/>

              <module name="org.apache.commons.validator"/>

              <module name="org.apache.oro"/>

              <module name="org.xml.sax" services="import"/>

              <module name="javax.servlet.api" services="import"/>

              <module name="javax.servlet.jsp.api" services="import"/>

              <module name="org.apache.xalan" services="import"/>

              </dependencies>

            </module>

             

             

            Your help will be really appreciated...!!! jaikiran.jai_forums2005.yahoo.co.in wfink wdfink

            • 3. Re: JBOSS 5 to 7 Migration Issues
              Manoj Gite Newbie

              Updated: -

               

               

              I removed all jboss-deployment-structure.xm files since only root jboss-deployment-structure.xml file will be considered.

              I updated the jboss-deployment-structure.xml file in  META-INF/ folder as below -

               

              <?xml version='1.0' encoding='UTF-8'?>

              <jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.1">

                <ear-subdeployments-isolated>false</ear-subdeployments-isolated>

                <sub-deployment name="dwm.war">

                  <dependencies>

                   <!-- <module name="deployment.ApplicationDWM.ear.logon-ejb.jar" export="true"/>   -->

                    <module name="deployment.ApplicationDWM.ear.dwmadmin-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.rehab-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.dle-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.rehabcost-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.dlecost-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.bpcComp-ejb.jar" export="true"export="true"/>

                    <module name="deployment.ApplicationDWM.ear.frv-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.bdpr-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.bpc-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.rehabudgetreport-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.rehabbudget-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.geounit-ejb.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.report-post.jar" export="true"/>

                    <module name="deployment.ApplicationDWM.ear.report-ejb.jar" export="true"/>

                  </dependencies>

                </sub-deployment>

                <sub-deployment name="dwm2.war">

                  <dependencies>

                    <module name="deployment.ApplicationDWM.ear.dwm.war" />

                  </dependencies>

                </sub-deployment>

                <sub-deployment name="dwm3.war">

                <dependencies>

                    <module name="deployment.ApplicationDWM.ear.dwm.war" />

                  </dependencies>

                 </sub-deployment>

              </jboss-deployment-structure>

               

              Still I am getting the errors for all the three contexts -

               

              03:23:30,516 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/dwm2]] (ServerService Thread Pool -- 317) JBWEB000289: Servlet action threw load() exception: java.lang.VerifyError: (class: org/apache/commons/digester/Digester, method: createSAXException signature: (Ljava/lang/String;Ljava/lang/Exception;)Lorg/xml/sax/SAXException;) Wrong return type in function

                at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1079) [struts.jar:1.2.4]

                at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) [struts.jar:1.2.4]

                at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1100) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3591) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3798) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:59) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:94) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_67]

                at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_67]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]

                at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122)

               

               

              03:23:30,518 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/dwm3]] (ServerService Thread Pool -- 319) JBWEB000289: Servlet action threw load() exception: java.lang.VerifyError: (class: org/apache/commons/digester/Digester, method: createSAXException signature: (Ljava/lang/String;Ljava/lang/Exception;)Lorg/xml/sax/SAXException;) Wrong return type in function

                at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1079) [struts.jar:1.2.4]

                at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) [struts.jar:1.2.4]

                at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1100) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3591) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3798) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:59) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:94) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_67]

                at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_67]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]

                at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122)

               

              03:23:41,694 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/dwm]] (ServerService Thread Pool -- 318) JBWEB000289: Servlet action threw load() exception: java.lang.VerifyError: (class: org/apache/commons/digester/Digester, method: createSAXException signature: (Ljava/lang/String;Ljava/lang/Exception;)Lorg/xml/sax/SAXException;) Wrong return type in function

                at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1079) [struts.jar:1.2.4]

                at org.apache.struts.action.ActionServlet.init(ActionServlet.java:324) [struts.jar:1.2.4]

                at javax.servlet.GenericServlet.init(GenericServlet.java:242) [jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-1.jar:1.0.2.Final-redhat-1]

                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1194) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1100) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3591) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:3798) [jbossweb-7.4.8.Final-redhat-4.jar:7.4.8.Final-redhat-4]

                at org.jboss.as.web.deployment.WebDeploymentService.doStart(WebDeploymentService.java:161) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at org.jboss.as.web.deployment.WebDeploymentService.access$000(WebDeploymentService.java:59) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at org.jboss.as.web.deployment.WebDeploymentService$1.run(WebDeploymentService.java:94) [jboss-as-web-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [rt.jar:1.7.0_67]

                at java.util.concurrent.FutureTask.run(FutureTask.java:262) [rt.jar:1.7.0_67]

                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_67]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_67]

                at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_67]

                at org.jboss.threads.JBossThread.run(JBossThread.java:122)

               

               

              jaikiran  wdfink