3 Replies Latest reply on Feb 6, 2012 2:40 AM by Stephen Coy

    Ear Deployment in Jboss AS 7

    teena buchade Newbie

      Hi,

       

      Facing problem in EAR deployment

       

      The EAR structure is as below

       

      EAR

      |

      ------META-INF

                |

                -----application.xml

                |

                ----jboss-app.xml

                |

                ------jboss-deployment-structure.xml

      '

      '----Engine.war

      |

      ------B2BWebservicesClient.jar

      |

      -----etc mutilple custome jar

       

      The have attached the -application.xml,jboss-app.xml,jboss-deployment-structure.xml used in the ear.

       

      The error which i am getting is  as follows:

       

      12:28:33,618 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."B2BExchange.ear".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."B2BExchange.ear".PARSE: Failed to process phase PARSE of deployment "B2BExchange.ear"

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

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

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

                at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Sub deployment  B2BWebservicesClient.jar in jboss-structure.xml was not found. Available sub deployments: ExchangeFramework.jar, Retry.jar, NotificationMDB.jar, ostermillerutils_1_07_00.jar, mysql-connector-java-5.0.8-bin.jar, commons-dbcp.jar, quartz-all-1.7.3.jar, Scheduler.jar, QueryBuilder.jar, TransformationMDB.jar, TransformationEngine.war, LoggingMDB.jar, B2BExchangeUtility.jar, LoadCalculatorMDB.jar, commons-pool.jar, B2BWebservicesClient.jar, Orchestration.jar,

                at org.jboss.as.server.deployment.module.DeploymentStructureDescriptorParser.subDeploymentNotFound(DeploymentStructureDescriptorParser.java:358) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

                at org.jboss.as.server.deployment.module.DeploymentStructureDescriptorParser.deploy(DeploymentStructureDescriptorParser.java:320) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

                at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115) [jboss-as-server-7.0.2.Final.jar:7.0.2.Final]

                ... 5 more

       

       

      12:28:33,618 ERROR [org.jboss.as] (MSC service thread 1-1) JBoss AS 7.0.2.Final "Arc" started (with errors) in 309649ms - Started 136 of 209 services (18 services failed or missing dependencies, 55 services are passive or on-demand)

      12:28:33,821 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "B2BExchange.ear" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"B2BExchange.ear\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"B2BExchange.ear\".PARSE: Failed to process phase PARSE of deployment \"B2BExchange.ear\""}}

       

       

      Kindly help.

        • 1. Re: Ear Deployment in Jboss AS 7
          Stephen Coy Master
          1. Discard the jboss-deployment-structure.xml and jboss-app.xml files for now
          2. Remove all of the java module declarations from your application.xml. Leave only the ejb and web modules
          3. Create a lib directory in your EAR and place all of the jars referenced by the java modules in there

           

          See what happens then...

          • 2. Re: Ear Deployment in Jboss AS 7
            teena buchade Newbie

            Hi Stephen,

             

            Thanks for the fast reply.

             

            The above issue is solved there was a space in jboss-deployment-structure.xml which was creating the problem.

             

            But still i am not able to deploy the ear.

             

            Now i am getting the below error.

             

            11:25:20,605 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"B2BExchange.ear\".POST_MODULE missing [ jboss.module.spec.service.\"deployment.B2BExchange.ear.commons-pool.jar\".main ]"]}}}

             

            Thanks for your help in advance.

            • 3. Re: Ear Deployment in Jboss AS 7
              Stephen Coy Master

              Steps 2 & 3 above still apply...