0 Replies Latest reply on Jul 13, 2012 7:31 AM by Andrew Ritchie

    Artifact Deployment Failure

    Andrew Ritchie Newbie

      Hi,

      I’m a JBOSS AS 7 newbie looking for some help.                                                                                                    

      I’m hoping someone can help explain why deploying an EJB artifact using a manual copy direct to the “deployments” directory and then attempting a redployment using the Maven jboss-as-maven-plugin plugin fails with the messages (in the server.log)

      11:17:13,099 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014900: Content added at location /srv/jboss/jboss7/standalone/data/content/f0/8672192ddf43bd51767b3d5f7fcdf86cef508d/content

      11:17:13,104 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of "apc-ejb-1.0_Beta5-SNAPSHOT"

      11:17:13,150 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."apc-ejb-1.0_Beta5-SNAPSHOT".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."apc-ejb-1.0_Beta5-SNAPSHOT".POST_MODULE: Failed to process phase POST_MODULE of deployment "apc-ejb-1.0_Beta5-SNAPSHOT"

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

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

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

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.6.0_24]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.6.0_24]

              at java.lang.Thread.run(Thread.java:679) [rt.jar:1.6.0_24]

      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.naming.context.java.comp."apc-ejb-1.0_Beta5-SNAPSHOT"."apc-ejb-1.0_Beta5-SNAPSHOT".ApcBean.ValidatorFactory is already registered

              at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:154) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:227) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:560) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:201) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2228) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:307) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

              at org.jboss.as.ee.beanvalidation.BeanValidationFactoryDeployer.bindServices(BeanValidationFactoryDeployer.java:100)

              at org.jboss.as.ee.beanvalidation.BeanValidationFactoryDeployer.bindFactoryToJndi(BeanValidationFactoryDeployer.java:84)

              at org.jboss.as.ee.beanvalidation.BeanValidationFactoryDeployer.deploy(BeanValidationFactoryDeployer.java:64)

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

              ... 5 more

       

      11:17:13,156 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS015870: Deploy of deployment "apc-ejb-1.0_Beta5-SNAPSHOT" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"apc-ejb-1.0_Beta5-SNAPSHOT\".POST_MODULE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"apc-ejb-1.0_Beta5-SNAPSHOT\".POST_MODULE: Failed to process phase POST_MODULE of deployment \"apc-ejb-1.0_Beta5-SNAPSHOT\""}}

      11:17:13,169 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment apc-ejb-1.0_Beta5-SNAPSHOT in 12ms

      11:17:13,170 INFO  [org.jboss.as.controller] (management-handler-thread - 2) JBAS014774: Service status report

      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."apc-ejb-1.0_Beta5-SNAPSHOT".POST_MODULE: org.jboss.msc.service.StartException in service jboss.deployment.unit."apc-ejb-1.0_Beta5-SNAPSHOT".POST_MODULE: Failed to process phase POST_MODULE of deployment "apc-ejb-1.0_Beta5-SNAPSHOT"

      The configuration of the jboss-as-maven-plugin  plugin in the pom.xml looks like

               <!-- JBoss AS plugin to deploy the application -->

               <plugin>

      <groupId>org.jboss.as.plugins</groupId>

      <artifactId>jboss-as-maven-plugin</artifactId>

      <executions>

      <execution>

      <id>ejb-deploy</id>

      <phase>install</phase>

      <goals>

      <goal>deploy</goal>

      </goals>

      <configuration>

      <hostname>${jbossHost}</hostname>

      <username>${jbossUser}</username>

      <password>${jbossPasswd}</password>

      <filename>apc-ejb.jar</filename>

      <!-- set deployed name to include version information -->

      <name>apc-ejb-${project.version}</name>

      <force>true</force>

      </configuration>

      </execution>

                  </executions>

      <configuration>

      <skip>false</skip>

      </configuration>

               </plugin>

       

      Hoping someone can explain.
      Regards,
      Andrew