4 Replies Latest reply on Sep 10, 2010 1:44 PM by tothc

    Deployment to JBoss unsuccessful: EJB3 VMID is already registered

    tothc

      I'm modifing an open-source project's code to implement special system for academic research.

      See OpenEMPI: http://www.openempi.org/

      It uses PostgreSQL, Spring, and it exposes some functionality through EJB3 interfaces.

      I deploy the ear into a JBoss 4.2.3 GA-jdk6, I use 1.6.0_21 Java JDK, Windows 7 x64 operating system (+ Ubuntu machines, right now my developer machine has Windows 7, but I'll move soon to Ubuntu.

       

      I made several changes to OpenEMPI, and now I want to set up a scheme where OpenEMPI communicates with another one through the EJB3 interfaces.

      More than 3 weeks ago I achieved that locally and then I moved the other component to the Ubuntu machines.

       

      Then I also wanted to make the communication secure, so I made several configuration changes to JBoss to leverage SSL.

       

      Things started to go wrong. The test code managed to get the EJB3 Service interface 2 weeks ago, but when I called actual functions on it, the communication stopped. I ran the server in SSL debug mode, but couldn't figure out why it didn't work. I ruled out all firewalls, so that cannot be the problem. Things still worked on my developer machine, if I deployed all componenets to the same JBoss.

       

      I decided to move back to the non SSL configuration, but now I'm totally stuck, because I couldn't even deploy my modified OpenEMPI to my local JBoss!!! I have no idea why. It must be some simple configuration problem, but I don't know what it is and I hope you can help.

       

      Error message:

      14:37:55,953 INFO  [EARDeployer] Init J2EE application: file:/C:/jboss/server/default/deploy/openempi-2.0.5.ear
      14:38:10,594 WARN  [ServiceController] Problem creating service jboss.j2ee:service=EJB3,module=openempi-ejb-2.0.5.jar
      java.lang.IllegalStateException: Container jboss.j2ee:ear=openempi-2.0.5.ear,jar=openempi-ejb-2.0.5.jar,name=PersonManagerService,service=EJB3,VMID=1be0395c8ac2f5a9:-a9218d4:12af800b119:-7f8e + is already registered
          at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:114)
          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:597)
          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:597)
          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:597)
          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.create(MainDeployer.java:959)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          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:597)
          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.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          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:304)
          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:597)
          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:619)
      14:38:11,181 WARN  [JAXWSDeployerHookPreJSE] Cannot load servlet class: com.google.gwt.junit.server.JUnitHostImpl
      14:38:11,195 INFO  [EJB3Deployer] Deployed: file:/C:/jboss/server/default/tmp/deploy/tmp603717587478542091openempi-2.0.5.ear-contents/openempi-ejb-2.0.5.jar
      14:38:11,204 INFO  [TomcatDeployer] deploy, ctxPath=/openempi-admin, warUrl=.../tmp/deploy/tmp603717587478542091openempi-2.0.5.ear-contents/openempi-webapp-web-2.0.5-exp.war/
      14:38:19,778 INFO  [STDOUT] INFO - org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(34) | Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
      14:38:20,100 INFO  [STDOUT] INFO - org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(33) | No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      14:38:22,749 INFO  [STDOUT] UserManagerImpl constructed
      14:38:23,354 INFO  [STDOUT] PersonManagerServiceImpl constructed
      14:38:23,471 INFO  [STDOUT] PersonQueryServiceImpl constructed
      14:38:23,784 INFO  [STDOUT] PersonManagerRemoteServiceImpl constructed
      14:38:23,841 INFO  [STDOUT] PersonQueryRemoteServiceImpl constructed
      14:38:23,892 INFO  [STDOUT] KeyServiceLocatorImpl constructed
      14:38:23,912 INFO  [STDOUT] TransformationServiceImpl constructed
      14:38:24,362 INFO  [STDOUT] Configuration constructed
      14:38:26,180 INFO  [STDOUT] ValidationServiceImpl constructed
      14:38:26,199 INFO  [STDOUT] ProbabilisticMatchingService constructed
      14:38:26,228 INFO  [STDOUT] BlockingServiceImpl constructed
      14:38:26,277 INFO  [STDOUT] BlockingBypassServiceImpl constructed
      14:38:26,292 INFO  [STDOUT] StringComparisonServiceImpl constructed
      14:38:27,080 INFO  [STDOUT] AuditEventServiceImpl constructed
      14:38:27,244 INFO  [STDOUT] DEBUG - org.hibernate.jdbc.AbstractBatcher.log(401) | select this_.audit_event_type_cd as audit1_1_0_, this_.audit_event_type_code as audit2_1_0_, this_.audit_event_type_description as audit3_1_0_, this_.audit_event_type_name as audit4_1_0_ from audit_event_type this_
      14:38:27,245 INFO  [STDOUT] Hibernate: select this_.audit_event_type_cd as audit1_1_0_, this_.audit_event_type_code as audit2_1_0_, this_.audit_event_type_description as audit3_1_0_, this_.audit_event_type_name as audit4_1_0_ from audit_event_type this_
      14:38:29,341 INFO  [STDOUT] KeyServerServiceImpl constructed
      14:38:30,001 INFO  [STDOUT] INFO - org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(34) | Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
      14:38:30,003 INFO  [STDOUT] INFO - org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(33) | No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      14:38:30,304 INFO  [STDOUT] UserManagerImpl constructed
      14:38:30,348 INFO  [STDOUT] PersonManagerServiceImpl constructed
      14:38:30,379 INFO  [STDOUT] PersonQueryServiceImpl constructed
      14:38:30,392 INFO  [STDOUT] PersonManagerRemoteServiceImpl constructed
      14:38:30,404 INFO  [STDOUT] PersonQueryRemoteServiceImpl constructed
      14:38:30,413 INFO  [STDOUT] KeyServiceLocatorImpl constructed
      14:38:30,416 INFO  [STDOUT] TransformationServiceImpl constructed
      14:38:30,453 INFO  [STDOUT] Configuration constructed
      14:38:30,486 INFO  [STDOUT] ValidationServiceImpl constructed
      14:38:30,742 INFO  [STDOUT] ProbabilisticMatchingService constructed
      14:38:30,816 INFO  [STDOUT] BlockingServiceImpl constructed
      14:38:30,826 INFO  [STDOUT] BlockingBypassServiceImpl constructed
      14:38:30,829 INFO  [STDOUT] StringComparisonServiceImpl constructed
      14:38:30,869 INFO  [STDOUT] AuditEventServiceImpl constructed
      14:38:30,875 INFO  [STDOUT] DEBUG - org.hibernate.jdbc.AbstractBatcher.log(401) | select this_.audit_event_type_cd as audit1_42_0_, this_.audit_event_type_code as audit2_42_0_, this_.audit_event_type_description as audit3_42_0_, this_.audit_event_type_name as audit4_42_0_ from audit_event_type this_
      14:38:30,875 INFO  [STDOUT] Hibernate: select this_.audit_event_type_cd as audit1_42_0_, this_.audit_event_type_code as audit2_42_0_, this_.audit_event_type_description as audit3_42_0_, this_.audit_event_type_name as audit4_42_0_ from audit_event_type this_
      14:38:30,906 INFO  [STDOUT] KeyServerServiceImpl constructed
      14:38:32,415 INFO  [STDOUT] INFO - org.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(34) | Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
      14:38:32,421 INFO  [STDOUT] INFO - org.hibernate.transaction.TransactionManagerLookupFactory.getTransactionManagerLookup(33) | No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
      14:38:32,765 INFO  [STDOUT] UserManagerImpl constructed
      14:38:32,846 INFO  [STDOUT] PersonManagerServiceImpl constructed
      14:38:32,871 INFO  [STDOUT] PersonQueryServiceImpl constructed
      14:38:32,884 INFO  [STDOUT] PersonManagerRemoteServiceImpl constructed
      14:38:33,002 INFO  [STDOUT] PersonQueryRemoteServiceImpl constructed
      14:38:33,008 INFO  [STDOUT] KeyServiceLocatorImpl constructed
      14:38:33,011 INFO  [STDOUT] TransformationServiceImpl constructed
      14:38:33,036 INFO  [STDOUT] Configuration constructed
      14:38:33,068 INFO  [STDOUT] ValidationServiceImpl constructed
      14:38:33,070 INFO  [STDOUT] ProbabilisticMatchingService constructed
      14:38:33,078 INFO  [STDOUT] BlockingServiceImpl constructed
      14:38:33,309 INFO  [STDOUT] BlockingBypassServiceImpl constructed
      14:38:33,312 INFO  [STDOUT] StringComparisonServiceImpl constructed
      14:38:33,351 INFO  [STDOUT] AuditEventServiceImpl constructed
      14:38:33,357 INFO  [STDOUT] DEBUG - org.hibernate.jdbc.AbstractBatcher.log(401) | select this_.audit_event_type_cd as audit1_83_0_, this_.audit_event_type_code as audit2_83_0_, this_.audit_event_type_description as audit3_83_0_, this_.audit_event_type_name as audit4_83_0_ from audit_event_type this_
      14:38:33,357 INFO  [STDOUT] Hibernate: select this_.audit_event_type_cd as audit1_83_0_, this_.audit_event_type_code as audit2_83_0_, this_.audit_event_type_description as audit3_83_0_, this_.audit_event_type_name as audit4_83_0_ from audit_event_type this_
      14:38:33,365 INFO  [STDOUT] KeyServerServiceImpl constructed
      14:38:33,482 INFO  [EARDeployer] Started J2EE application: file:/C:/jboss/server/default/deploy/openempi-2.0.5.ear
      14:38:33,483 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

       

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:service=EJB3,module=openempi-ejb-2.0.5.jar
        State: FAILED
        Reason: java.lang.IllegalStateException: Container jboss.j2ee:ear=openempi-2.0.5.ear,jar=openempi-ejb-2.0.5.jar,name=PersonManagerService,service=EJB3,VMID=1be0395c8ac2f5a9:-a9218d4:12af800b119:-7f8e + is already registered

       

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.j2ee:service=EJB3,module=openempi-ejb-2.0.5.jar
        State: FAILED
        Reason: java.lang.IllegalStateException: Container jboss.j2ee:ear=openempi-2.0.5.ear,jar=openempi-ejb-2.0.5.jar,name=PersonManagerService,service=EJB3,VMID=1be0395c8ac2f5a9:-a9218d4:12af800b119:-7f8e + is already registered

       


      14:38:33,850 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-localhost%2F127.0.0.1-8080
      14:38:34,018 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-localhost%2F127.0.0.1-8009
      14:38:34,142 INFO  [Server] JBoss (MX MicroKernel) [4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)] Started in 1m:14s:646ms

        • 1. Re: Deployment to JBoss unsuccessful: EJB3 VMID is already registered
          tothc

          Additional info.

          The software has a core module and a separate ejb module (openempi-ejb-2.0.5.jar), as you can see.

          I'll try to attach the ejb configuration xml file of the Spring in the core module (applicationContext-ejb.xml) and the configuration file from the EJB module.

           

          I totally can't understand the error message. It says it is already deployed. Who else can deploy it? How? Why?

           

          I know that the software is complex, even some little direction would be good to me, because I have no idea what to do, and why is this error.

          Please bring me some light.

          Of course I googled with "WARN ServiceController Problem creating service jboss.j2ee:service EJB3 module ejb jar java.lang.IllegalStateException: Container jboss.j2ee:ear ear jar ejb jar name Service service EJB3 VMID is already registered at org.jboss.ejb3.Ejb3Registry.register Ejb3Registry.java 114"

          and stuff, but what I mostly get is some errors in Seam and stuff, not errors in some people's own software, so I cannot see solutions.

          • 2. Re: Deployment to JBoss unsuccessful: EJB3 VMID is already registered
            jaikiran

            Looks like that bean is being deployed twice. In your server.log, can you check for DEBUG (or TRACE) logs from org.jboss.ejb3 package to see who/when is the first instance being registered?

            • 3. Re: Deployment to JBoss unsuccessful: EJB3 VMID is already registered
              tothc

              I so much appreciate that you try to help me again!

              I attached server.log.

               

              First deployment happens after the unpacking the ear. The ear look like this:

               

              ear

              +-lib

                 +-...

              +-META-INF

                 +-...

              +-openempi-ejb-2.0.5.jar

              +-openempi-webapp-web-2.0.5.war

               

              I guess the deployer find the ejb jar file:

               

              2010-09-10 11:03:31,877 DEBUG [org.jboss.ejb3.EJB3Deployer] create, openempi-ejb-2.0.5.jar
              2010-09-10 11:03:31,910 DEBUG [org.jboss.ejb3.EJB3Deployer] Deploying: file:/C:/jboss/server/default/tmp/deploy/tmp4234392379439995465openempi-2.0.5.ear-contents/openempi-ejb-2.0.5.jar

               

              Hold on... I might found the problem. It might be a typo in the source...

              • 4. Re: Deployment to JBoss unsuccessful: EJB3 VMID is already registered
                tothc

                I got it, it was a typo! Copy-paste error.

                I made two new interfaces, and after the copy-paste, I haven't changed the names in the annotations of the *Bean.java files:

                 

                @Stateless(name="PersonManagerService")

                 

                I don't know why I looked over these, but unfortunately these are strings, so the type system couldn't detect this error.

                Another conclusion: the consol output provided less verbose output than the server.log, so I should look at that thoroughly next time. I spotted that a class name mentioned two times in the server.log during the EJB deployment, shortly after my quoted log section. That's how I found the error. I was looking at server.log before, but not thoroughly enough.

                 

                Thank you for your help!