3 Replies Latest reply on Jun 6, 2012 3:55 PM by madchedar0

    Deployment failed while migrating from JBOSS AS 4.23 to AS 7

    Shree Prakash Shukla Newbie

      Hi,

       

      I am getting deployment failed while migrating a module (Suite.ear) from JBOSS AS 4.23 to AS 7.

      The error displayed in Suite.ear.failed:-

       

      {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"Suite.ear\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Suite.ear\".PARSE: Failed to process phase PARSE of deployment \"Suite.ear\""}}}}

       

      Using tattletale, I checked the dependencies :-

      It depends on on eof our module jar (FDCommons),

      org.apache.axis.client.Call, org.apache.log4j.Logger, org.apache.log4j.PropertyConfigurator, org.apache.struts.action.Action, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionForward, org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionMessage, org.apache.struts.action.ActionMessages, org.apache.struts.upload.FormFile, org.hibernate.Criteria, org.hibernate.HibernateException, org.hibernate.Query, org.hibernate.Session, org.hibernate.SessionFactory, org.hibernate.cfg.Configuration, org.hibernate.classic.Session, org.hibernate.criterion.Criterion, org.hibernate.criterion.Expression, org.hibernate.criterion.Order, org.hibernate.criterion.SimpleExpression

       

      I included the missing modules in 'modules/' directory.

       

      As mentioned in the 'https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7'

      I included in MANIFEST.MF file,

       

      Dependencies: org.apache.log4j.PropertyConfigurator, org.apache.struts.*, org.hibernate.*, com.freightdesk.fdcommons.*

       

      After this, performing ANT build of this Suite project and copying its ear into new JBOSS AS 7 deployment folder, but its not getting deployed.

       

      Contents under Suite.ear :-

           - META-INF/

           - META-INF/MANIFEST.MF

           - META-INF/application.xml

           - Suite_5.0.jar

           - Suite_5.0.war

       

      Server Log are as below:-

       

      18:16:36,461 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."Suite.ear"."Suite_5.0.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."Suite.ear"."Suite_5.0.war".PARSE: Failed to process phase PARSE of subdeployment "Suite_5.0.war" of deployment "Suite.ear"

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759)

          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_23]

          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_23]

          at java.lang.Thread.run(Thread.java:662) [:1.6.0_23]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Failed to parse "/D:/jboss-as-7.0.2.Final/jboss-as-7.0.2.Final/bin/content/Suite.ear/Suite_5.0.war/WEB-INF/web.xml" at [101,2]

          at org.jboss.as.web.deployment.WebParsingDeploymentProcessor.deploy(WebParsingDeploymentProcessor.java:70)

          at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

       

      Please help me with this and let me know for any requirements.

       

      Thanks.

       

      Message was edited by: Shree Prakash Shukla