1 2 Previous Next 16 Replies Latest reply on Sep 4, 2008 3:01 AM by jaikiran pai

    service=EJB3 + is already registered

    Noel Vaes Newbie

      I'm trying to deploy my beans on JBoss 4.2.0. These beans are working on JBoss 4.0.5

      On 4.2.0 I always get the following error:

      12:43:23,656 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=MyEJB.jar
      java.lang.IllegalStateException: Container jboss.j2ee:jar=MyEJB.jar,name=HelloWorldBean,service=EJB3 + is already registered
       at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:80)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:476)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:424)
       at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:405)
       at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:366)
       at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:321)
       at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
       at $Proxy0.create(Unknown Source)
       at org.jboss.system.ServiceController.create(ServiceController.java:330)
       at org.jboss.system.ServiceController.create(ServiceController.java:273)
       at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy33.create(Unknown Source)
       at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:492)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
       at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
       at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:73)
       at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
       at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy34.create(Unknown Source)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
       at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
       at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
       at $Proxy9.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      12:43:23,656 INFO [EJB3Deployer] Deployed: file:/C:/Program Files/jboss-4.2.0.GA/server/default/deploy/MyEJB.jar
      12:43:23,671 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:service=EJB3,module=MyEJB.jar
       State: FAILED
       Reason: java.lang.IllegalStateException: Container jboss.j2ee:jar=MyEJB.jar,name=HelloWorldBean,service=EJB3 + is already registered
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.j2ee:service=EJB3,module=MyEJB.jar
       State: FAILED
       Reason: java.lang.IllegalStateException: Container jboss.j2ee:jar=MyEJB.jar,name=HelloWorldBean,service=EJB3 + is already registered
      
      
      


      Any idea what's wrong? I use a default intallation without any modifications.

      JDK: 1.5.0_11


        • 1. Re: service=EJB3 + is already registered
          <todo> <todo> Newbie

          Hi!
          I have the same problem. But it suddenly disappear after restarting server and redeploying ejb module.

          • 2. Re: service=EJB3 + is already registered
            Noel Vaes Newbie

            Finally I discoverd what was wrong: the jndi.properties file for the standalone client application was included in the bean JAR file. When I removed that file from the JAR, the problem was solved. However, JBOSS 4.0.5. ignored the presence of that file in the JAR.

            • 3. Re: service=EJB3 + is already registered
              Spartan 029 Newbie

              I keep getting the same exception and I don't have a client app or any jndi.props (except for the default ones) in my project either.

              i've tried restarting the server many times but it didn't "suddenly" disappear for me. And this only happens when I try to start JBoss from IntelliJ.

              • 5. Re: service=EJB3 + is already registered
                Alexander Hartner Expert

                We just migrated from 4.0.5 to 4.2.1 and are experiencing the same problem. Any other suggestions.

                • 6. Re: service=EJB3 + is already registered
                  Carlo de Wolf Master

                  Check out what happened to any previous deployment. Did it clean up properly?

                  If there is no previous deployment, create a small test case which reproduces the problem. Open a JIRA and attach the test case.

                  • 7. Re: service=EJB3 + is already registered
                    jo raksit Newbie

                    hi,

                    I'm having the same problem here too, was wondering if anone had found a resolution - i've no jndi properties in my jar

                    its an ejb thats been working fine so far but since i tried to expose it as a webservice, all sorts of funky stuff been happening.

                    i've included some of my server log, i'm pretty stuck here, and this seems to be the only discussion google can throw up


                    13:29:48,078 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
                    13:29:48,312 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                    13:29:48,453 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=java/OracleDS' to JNDI name 'java/OracleDS'
                    13:29:51,546 WARN [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=AVmanBean.jar
                    java.lang.IllegalStateException: Container jboss.j2ee:jar=AVmanBean.jar,name=AVmanBean,service=EJB3 + is already registered
                     at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:80)
                     at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:494)
                     at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:442)
                     at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:423)
                     at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:384)
                     at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:327)
                     at org.jboss.ejb3.Ejb3Module.createService(Ejb3Module.java:77)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:260)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:243)
                     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                     at $Proxy0.create(Unknown Source)
                     at org.jboss.system.ServiceController.create(ServiceController.java:330)
                     at org.jboss.system.ServiceController.create(ServiceController.java:273)
                     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy33.create(Unknown Source)
                     at org.jboss.ejb3.EJB3Deployer.create(EJB3Deployer.java:492)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                     at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                     at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:76)
                     at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
                     at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy34.create(Unknown Source)
                     at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                     at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy9.deploy(Unknown Source)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                     at $Proxy0.start(Unknown Source)
                     at org.jboss.system.ServiceController.start(ServiceController.java:417)
                     at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy4.start(Unknown Source)
                     at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy5.deploy(Unknown Source)
                     at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                     at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                     at org.jboss.Main.boot(Main.java:200)
                     at org.jboss.Main$1.run(Main.java:508)
                     at java.lang.Thread.run(Thread.java:595)
                    13:29:51,593 INFO [EJB3Deployer] Deployed: file:/C:/jboss/server/default/deploy/AVmanBean.jar
                    13:29:53,703 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss/server/default/data/wsdl/AVmanBean.jar/AVmanBean5821.wsdl
                    13:29:53,781 INFO [DefaultEndpointRegistry] register: jboss.ws:context=AVmanBean,endpoint=AVmanBean
                    13:29:53,843 INFO [TomcatDeployer] deploy, ctxPath=/AVmanBean, warUrl=.../tmp/deploy/AVmanBean.jar5823.war/
                    13:29:54,093 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss/server/default/deploy/AVmanBean.jar
                    javax.xml.ws.WebServiceException: Cannot find service endpoint target: jboss.j2ee:name=AVmanBean,service=EJB3,jar=AVmanBean.jar
                     at org.jboss.wsf.container.jboss42.InvocationHandlerEJB3.init(InvocationHandlerEJB3.java:83)
                     at org.jboss.wsf.framework.deployment.DefaultLifecycleHandler.create(DefaultLifecycleHandler.java:51)
                     at org.jboss.wsf.framework.deployment.EndpointLifecycleDeploymentAspect.create(EndpointLifecycleDeploymentAspect.java:42)
                     at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
                     at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
                     at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
                     at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
                     at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy34.start(Unknown Source)
                     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                     at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy9.deploy(Unknown Source)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                     at $Proxy0.start(Unknown Source)
                     at org.jboss.system.ServiceController.start(ServiceController.java:417)
                     at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                    
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy4.start(Unknown Source)
                     at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy5.deploy(Unknown Source)
                     at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                     at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                     at org.jboss.Main.boot(Main.java:200)
                     at org.jboss.Main$1.run(Main.java:508)
                     at java.lang.Thread.run(Thread.java:595)
                    13:29:54,203 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
                    13:29:54,468 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
                    
                    --- Packages waiting for a deployer ---
                    org.jboss.deployment.DeploymentInfo@5ad7de9e { url=file:/C:/jboss/server/default/deploy/Desktop.ini }
                     deployer: null
                     status: null
                     state: INIT_WAITING_DEPLOYER
                     watch: file:/C:/jboss/server/default/deploy/Desktop.ini
                     altDD: null
                     lastDeployed: 1193315394468
                     lastModified: 1193315394468
                     mbeans:
                    
                    --- Incompletely deployed packages ---
                    org.jboss.deployment.DeploymentInfo@5e724e6e { url=file:/C:/jboss/server/default/deploy/AVmanBean.jar }
                     deployer: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
                     status: Deployment FAILED reason: Cannot find service endpoint target: jboss.j2ee:name=AVmanBean,service=EJB3,jar=AVmanBean.jar
                     state: FAILED
                     watch: file:/C:/jboss/server/default/deploy/AVmanBean.jar
                     altDD: null
                     lastDeployed: 1193315391296
                     lastModified: 1193315389109
                     mbeans:
                    
                    org.jboss.deployment.DeploymentInfo@5ad7de9e { url=file:/C:/jboss/server/default/deploy/Desktop.ini }
                     deployer: null
                     status: null
                     state: INIT_WAITING_DEPLOYER
                     watch: file:/C:/jboss/server/default/deploy/Desktop.ini
                     altDD: null
                     lastDeployed: 1193315394468
                     lastModified: 1193315394468
                     mbeans:
                    
                    --- MBeans waiting for other MBeans ---
                    ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=Invoker
                     jboss.web:service=WebServer
                    
                    ObjectName: jboss:service=juddi
                     State: CONFIGURED
                     I Depend On:
                     jboss.jca:service=DataSourceBinding,name=OracleDS
                    
                    ObjectName: jboss.mq:service=StateManager
                     State: CONFIGURED
                     I Depend On:
                     jboss.jca:service=DataSourceBinding,name=OracleDS
                     Depends On Me:
                     jboss.mq:service=DestinationManager
                    
                    ObjectName: jboss.mq:service=DestinationManager
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=MessageCache
                     jboss.mq:service=PersistenceManager
                     jboss.mq:service=StateManager
                     jboss.mq:service=ThreadPool
                     jboss:service=Naming
                     Depends On Me:
                     jboss.mq.destination:service=Topic,name=testTopic
                     jboss.mq.destination:service=Topic,name=securedTopic
                     jboss.mq.destination:service=Topic,name=testDurableTopic
                     jboss.mq.destination:service=Queue,name=testQueue
                     jboss.mq.destination:service=Queue,name=A
                     jboss.mq.destination:service=Queue,name=B
                     jboss.mq.destination:service=Queue,name=C
                     jboss.mq.destination:service=Queue,name=D
                     jboss.mq.destination:service=Queue,name=ex
                     jboss.mq:service=SecurityManager
                     jboss.mq.destination:service=Queue,name=DLQ
                    
                    ObjectName: jboss.mq:service=PersistenceManager
                     State: CONFIGURED
                     I Depend On:
                     jboss.jca:service=DataSourceBinding,name=OracleDS
                     Depends On Me:
                     jboss.mq:service=DestinationManager
                    
                    ObjectName: jboss.mq.destination:service=Topic,name=testTopic
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                     jboss.mq:service=SecurityManager
                    
                    ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                     jboss.mq:service=SecurityManager
                    
                    ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                     jboss.mq:service=SecurityManager
                    
                    ObjectName: jboss.mq.destination:service=Queue,name=testQueue
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                     jboss.mq:service=SecurityManager
                    
                    ObjectName: jboss.mq.destination:service=Queue,name=A
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                    
                    ObjectName: jboss.mq.destination:service=Queue,name=B
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                    
                    ObjectName: jboss.mq.destination:service=Queue,name=C
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                    
                    ObjectName: jboss.mq.destination:service=Queue,name=D
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                    
                    ObjectName: jboss.mq.destination:service=Queue,name=ex
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                    
                    ObjectName: jboss.mq:service=Invoker
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=TracingInterceptor
                     jboss:service=Naming
                     Depends On Me:
                     jboss.mq:service=InvocationLayer,type=HTTP
                     jboss.mq:service=InvocationLayer,type=JVM
                     jboss.mq:service=InvocationLayer,type=UIL2
                    
                    ObjectName: jboss.mq:service=TracingInterceptor
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=SecurityManager
                     Depends On Me:
                     jboss.mq:service=Invoker
                    
                    ObjectName: jboss.mq:service=SecurityManager
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                     Depends On Me:
                     jboss.mq.destination:service=Topic,name=testTopic
                     jboss.mq.destination:service=Topic,name=securedTopic
                     jboss.mq.destination:service=Topic,name=testDurableTopic
                     jboss.mq.destination:service=Queue,name=testQueue
                     jboss.mq:service=TracingInterceptor
                     jboss.mq.destination:service=Queue,name=DLQ
                    
                    ObjectName: jboss.mq.destination:service=Queue,name=DLQ
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=DestinationManager
                     jboss.mq:service=SecurityManager
                    
                    ObjectName: jboss.mq:service=InvocationLayer,type=JVM
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=Invoker
                    
                    ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
                     State: CONFIGURED
                     I Depend On:
                     jboss.mq:service=Invoker
                    
                    ObjectName: jboss.j2ee:service=EJB3,module=AVmanBean.jar
                     State: FAILED
                     Reason: java.lang.IllegalStateException: Container jboss.j2ee:jar=AVmanBean.jar,name=AVmanBean,service=EJB3 + is already registered
                    
                    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                    ObjectName: jboss.jca:service=DataSourceBinding,name=OracleDS
                     State: NOTYETINSTALLED
                     Depends On Me:
                     jboss:service=juddi
                     jboss.mq:service=StateManager
                     jboss.mq:service=PersistenceManager
                    
                    ObjectName: jboss.j2ee:service=EJB3,module=AVmanBean.jar
                     State: FAILED
                     Reason: java.lang.IllegalStateException: Container jboss.j2ee:jar=AVmanBean.jar,name=AVmanBean,service=EJB3 + is already registered
                    
                    
                    13:29:54,796 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
                    13:29:54,812 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
                    13:29:54,828 INFO [Server] JBoss (MX MicroKernel) [4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)] Started in 26s:922ms
                    13:31:04,812 WARN [Ejb3Module] Destroying failed jboss.j2ee:service=EJB3,module=AVmanBean.jar
                    java.lang.IllegalStateException: Container jboss.j2ee:jar=AVmanBean.jar,name=AVmanBean,service=EJB3 + is not registered
                     at org.jboss.ejb3.Ejb3Registry.unregister(Ejb3Registry.java:94)
                     at org.jboss.ejb3.Ejb3Deployment.undeploy(Ejb3Deployment.java:686)
                     at org.jboss.ejb3.Ejb3Deployment.destroy(Ejb3Deployment.java:675)
                     at org.jboss.ejb3.Ejb3Module.destroyService(Ejb3Module.java:122)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalDestroy(ServiceMBeanSupport.java:345)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:249)
                     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                     at $Proxy0.destroy(Unknown Source)
                     at org.jboss.system.ServiceController.destroy(ServiceController.java:577)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy33.destroy(Unknown Source)
                     at org.jboss.ejb3.EJB3Deployer.destroy(EJB3Deployer.java:550)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
                     at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
                     at org.jboss.wsf.container.jboss42.DeployerInterceptor.destroy(DeployerInterceptor.java:109)
                     at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.destroy(SubDeployerInterceptorSupport.java:204)
                     at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:103)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy34.destroy(Unknown Source)
                     at org.jboss.deployment.MainDeployer.destroy(MainDeployer.java:704)
                     at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:639)
                     at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:632)
                     at org.jboss.deployment.MainDeployer.undeploy(MainDeployer.java:615)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
                     at $Proxy9.undeploy(Unknown Source)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.undeploy(URLDeploymentScanner.java:450)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:570)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
                    
                    



                    it says its deplyed, then it says it isnt, then it says it cant destroy it. i've been clearing my temp files and redeploying and keep getting back here. and when i try access the web service, it says;
                    javax.xml.ws.WebServiceException: Cannot find service endpoint target: jboss.j2ee:name=AVmanBean,service=EJB3,jar=AVmanBean.jar

                    hugely grateful for any help!



                    • 8. Re: service=EJB3 + is already registered
                      joo Newbie

                      hi

                      I have the same problem.
                      A simple ejb3 worked on jboss-4.0.4RC1.
                      Now I use jboss-4.2.2.GA and it dosn't work.

                      Do you found the problem?
                      I hope so :-)


                      regards

                      Georg

                      • 9. Re: service=EJB3 + is already registered
                        Juan Manuel Medina Apodaca Newbie

                        Hi. I had the same problem, and finally solved it.

                        In my case, the problem seemed to be caused by the jar construction. In my build.xml file I had the following tag:



                        The problem solved when I removed the basedir parameter:



                        Somehow, the basedir attribute seemed to be duplicating the classes, although I couldn't see any duplicated class on the jar file.

                        Juan Manuel

                        • 10. Re: service=EJB3 + is already registered
                          Juan Manuel Medina Apodaca Newbie

                          Sorry, in the previous message the tags didn't show. The incorrect ant tag was:



                          The correct ant tag is:



                          Greetings

                          • 11. Re: service=EJB3 + is already registered
                            Juan Manuel Medina Apodaca Newbie

                            Sorry, in the previous message the tags didn't show. The incorrect ant tag was:



                            The correct ant tag is:



                            Greetings

                            • 12. Re: service=EJB3 + is already registered
                              Juan Manuel Medina Apodaca Newbie

                              Sorry, in the previous message the tags didn't show. The incorrect ant tag was:

                              jar basedir="${app.classes.dir}" compress="true" jarfile="${jar}"

                              The correct ant tag is:

                              jar compress="true" jarfile="${jar}"

                              Greetings

                              • 13. Re: service=EJB3 + is already registered
                                Samuel Doyle Apprentice

                                Same problem with 4.2.2

                                MDB

                                MessageDriven( activationConfig = {
                                 @ActivationConfigProperty( propertyName = "destinationType",
                                 propertyValue = "javax.jms.Queue" ),
                                 @ActivationConfigProperty( propertyName = "destination",
                                 propertyValue = "queue/hibernatesearch" )
                                 //@ActivationConfigProperty( propertyName = "maxSession", propertyValue = "1")
                                } )


                                jbossmq-destinations-service.xml

                                <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=hibernatesearc
                                h">
                                 <attribute name="JNDIName">queue/hibernatesearch</attribute>
                                 <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
                                 <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
                                 <attribute name="SecurityConf">
                                 <security>
                                 <role name="guest" read="true" write="true" create="true"/>
                                 <role name="publisher" read="true" write="true" create="true"/>
                                 <role name="durpublisher" read="true" write="true" create="true"/>
                                 </security>
                                 </attribute>
                                </mbean>


                                If I don't specify in the configuration it attempts to create a tempory queue on startup then throws an NPE!?

                                This is pretty critical.

                                • 14. Re: service=EJB3 + is already registered
                                  Samuel Doyle Apprentice

                                  Some more information:

                                  20:08:27,097 WARN [ServiceController] Problem starting service jboss.j2ee:ear=event-management-tool.ear,j
                                  ar=event-management-tool.jar,name=SearchControllerMDB,service=EJB3
                                  javax.management.InstanceAlreadyExistsException: jboss.mq.destination:service=Queue,name=hibernatesearch a
                                  lready registered.


                                  ObjectName: jboss.j2ee:ear=event-management-tool.ear,jar=event-management-tool.jar,name=SearchControllerMD
                                  B,service=EJB3
                                   State: FAILED
                                   Reason: javax.management.InstanceAlreadyExistsException: jboss.mq.destination:service=Queue,name=hiberna
                                  tesearch already registered.
                                   I Depend On:
                                   persistence.units:ear=event-management-tool.ear,jar=event-management-tool.jar,unitName=event-managemen
                                  t-tool


                                  1 2 Previous Next