This page last changed on 20.05.2011 by mark.

Deployment Exception

When you get a DeploymentException using EJB's, it's very likely that your EJB Code is more than one time on your Class-Path. Check for correct File-Mapping and Paths in your XML.

org.jboss.deployers.spi.DeploymentException: Error deploying root.project-1.0.ear: Error creating ejb container DummyEJB: Container jboss.j2ee:ear=root.project-1.0.ear,jar=root.project-1.0.ear,name=DummyEJB,service=EJB3,VMID=3b3f52903ff3d38e:332e3dd4:1300ec18932:-7ffe + is already registered
 at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
 at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
 at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
 at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
 at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
 at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
 at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
 at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
 at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
 at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
 at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
 at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
 at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
 at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
 at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
 at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
 at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
 at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
 at org.jboss.Main.boot(Main.java:221)
 at org.jboss.Main$1.run(Main.java:556)
 at java.lang.Thread.run(Thread.java:619)
Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container DummyEJB: Container jboss.j2ee:ear=root.project-1.0.ear,jar=root.project-1.0.ear,name=DummyEJB,service=EJB3,VMID=3b3f52903ff3d38e:332e3dd4:1300ec18932:-7ffe + is already registered
 at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:732)
 at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
 at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
 at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
 at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
 at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
 ... 33 more
Caused by: java.lang.IllegalStateException: Container jboss.j2ee:ear=root.project-1.0.ear,jar=root.project-1.0.ear,name=DummyEJB,service=EJB3,VMID=3b3f52903ff3d38e:332e3dd4:1300ec18932:-7ffe + is already registered
 at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:128)
 at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:728)org.jboss.deployers.spi.DeploymentException: Error deploying root.project-1.0.ear: Error creating ejb container DummyEJB: Container jboss.j2ee:ear=root.project-1.0.ear,jar=root.project-1.0.ear,name=DummyEJB,service=EJB3,VMID=3b3f52903ff3d38e:332e3dd4:1300ec18932:-7ffe + is already registered	at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)	at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)	at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)	at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)	at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)	at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)	at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)	at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)	at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)	at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)	at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)	at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)	at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)	at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)	at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)	at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)	at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)	at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)	at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)	at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)	at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)	at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)	at org.jboss.Main.boot(Main.java:221)	at org.jboss.Main$1.run(Main.java:556)	at java.lang.Thread.run(Thread.java:619)Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container DummyEJB: Container jboss.j2ee:ear=root.project-1.0.ear,jar=root.project-1.0.ear,name=DummyEJB,service=EJB3,VMID=3b3f52903ff3d38e:332e3dd4:1300ec18932:-7ffe + is already registered	at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:732)	at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)	at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)	at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)	at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)	at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)	... 33 moreCaused by: java.lang.IllegalStateException: Container jboss.j2ee:ear=root.project-1.0.ear,jar=root.project-1.0.ear,name=DummyEJB,service=EJB3,VMID=3b3f52903ff3d38e:332e3dd4:1300ec18932:-7ffe + is already registered	at org.jboss.ejb3.Ejb3Registry.register(Ejb3Registry.java:128)	at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:728)
Document generated by Confluence on 22 Mai 2011 13:19