1 Reply Latest reply on Apr 4, 2014 7:38 AM by Raj Haque

    Exception during deploying Ejb module on Wildfly 8

    Rupesh Talekar Newbie

      Hi all,

       

      I am trying to deploy a ejb module on wildfly 8 which deployed successfully on jboss 7.

       

      It gives the following exception during the deployment.

       

      03/04/2014 14:05:42,662 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."messaging.jar".cache-dependencies-installer: org.jboss.msc.service.StartException in service jboss.deployment.unit."messaging.jar".cache-dependencies-installer: Failed to start service

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_09]

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

          at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]

      Caused by: org.jboss.msc.service.DuplicateServiceException: Service jboss.infinispan.ejb."messaging.jar".config is already registered

          at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:767) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.wildfly.clustering.ejb.infinispan.InfinispanBeanManagerFactoryBuilder.installDeploymentUnitDependencies(InfinispanBeanManagerFactoryBuilder.java:75)

          at org.jboss.as.ejb3.cache.distributable.DistributableCacheFactoryBuilderService.installDeploymentUnitDependencies(DistributableCacheFactoryBuilderService.java:90)

          at org.jboss.as.ejb3.deployment.processors.CacheDependenciesProcessor$1.start(CacheDependenciesProcessor.java:51)

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.0.Final.jar:1.2.0.Final]

          ... 3 more

       

      please help me on same.

        • 1. Re: Exception during deploying Ejb module on Wildfly 8
          Raj Haque Newbie

          This sounds that you have messaging.jar twice ( jboss and your war/ear) . You should remove it from your app lib directory and then try a deployment.

           

           

          In case, you are using maven and the use <scope>provided</scope>  in your POM.

           

          <dependency>

            <groupId>org.jboss.jbossas</groupId>

            <artifactId>jboss-as-messaging</artifactId>

            <version>5.1.0.CR1</version>

          <scope>provided</scope>

          </dependency>