Hi Sorry for my bad. My app name is javaee-example. So I guess here module Id will be javaee-example and ejb name woould be what ever the name of ejb. But since I'm deploying same webapp {moduleId}/{ejbName} will be still same in both case.
I put {moduleId}/{ejbName} to system.properties and still the same issue exist Thanks 2015-09-15 18:04 GMT+05:30 Thusitha Thilina Dayaratne < thusithathil...@gmail.com>: > Hi Uday, > > Thanks for your quick response. But could you tell me should I replace > {moduleId} and {ejbName} with some values or should I put it as it is " > openejb.deploymentId.format={moduleId}/{ejbName} " > > Thanks > > 2015-09-15 17:43 GMT+05:30 Uday Gire <uday.g...@managecat.com>: > >> Hi >> >> Open conf/system.properties file and adds the following >> >> openejb.deploymentId.format={moduleId}/{ejbName} OR >> openejb.deploymentId.format= {moduleId}/{ejbClass.simpleName} >> and then Restart server >> >> Look at here: http://tomee.apache.org/jndi-names.html < >> http://tomee.apache.org/jndi-names.html> >> >> Best >> >> Uday Gire >> ManageCat, http://www.managecat.com <http://www.managecat.com/> >> uday.g...@managecat.com >> >> > On 15 Sep 2015, at 14:55, Thusitha Thilina Dayaratne < >> thusithathil...@gmail.com> wrote: >> > >> > Hi, >> > >> > I've deployed a simple ejb webapp in my localhost (TomEE-plus 1.7.2) >> and it >> > works without any issue. Then I added a new vhost through the server.xml >> > and try to deploy same webapp in that vhost. >> > Then I'm getting following exception >> > >> > I saw there is a JIRA[1] for same sort of issue and in thata it is >> > mentioned fixed in OpenEJB 3.1. But AFAIK TomEE 1.7.2 uses openejb >> 4.7.2 >> > but still this issue seems to be there. >> > >> > Any idea on this? >> > >> > [1] - https://issues.apache.org/jira/browse/OPENEJB-873 >> > >> > SVERE: Application cannot be deployed as it contains deployment-ids >> which >> >> are in use: app: >> >> >> /home/thusitha/Downloads/apache-tomee-plus-1.7.2/abcthusitha/javaee-examples >> >> Sep 15, 2015 5:16:49 PM org.apache.openejb.assembler.classic.Assembler >> >> createApplication >> >> SEVERE: DeploymentId already used: SecureEJB >> >> Sep 15, 2015 5:16:49 PM org.apache.openejb.assembler.classic.Assembler >> >> createApplication >> >> SEVERE: DeploymentId already used: AnnotatedEJB >> >> Sep 15, 2015 5:16:49 PM org.apache.openejb.assembler.classic.Assembler >> >> createApplication >> >> SEVERE: DeploymentId already used: HelloEjbService >> >> Sep 15, 2015 5:16:49 PM org.apache.tomee.catalina.TomcatWebAppBuilder >> >> startInternal >> >> SEVERE: Unable to deploy collapsed ear in war >> >> StandardEngine[Catalina].StandardHost[thusitha.com >> >> ].StandardContext[/javaee-examples] >> >> org.apache.openejb.DuplicateDeploymentIdException: Application cannot >> be >> >> deployed as it contains deployment-ids which are in use: app: >> >> >> /home/thusitha/Downloads/apache-tomee-plus-1.7.2/abcthusitha/javaee-examples >> >> SecureEJB >> >> AnnotatedEJB >> >> HelloEjbService >> >> at >> >> >> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:691) >> >> at >> >> >> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:652) >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1261) >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100) >> >> at >> >> >> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130) >> >> at >> >> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) >> >> at >> >> >> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) >> >> at >> >> >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416) >> >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >> >> at >> >> >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) >> >> at >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) >> >> at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) >> >> at >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) >> >> at >> >> >> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930) >> >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> >> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >> >> at >> >> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> >> at >> >> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> >> at java.lang.Thread.run(Thread.java:745) >> >> Sep 15, 2015 5:16:49 PM org.apache.catalina.core.ContainerBase >> removeChild >> >> SEVERE: ContainerBase.removeChild: destroy: >> >> org.apache.catalina.LifecycleException: An invalid Lifecycle transition >> >> was attempted ([before_destroy]) for component >> >> [StandardEngine[Catalina].StandardHost[thusitha.com >> ].StandardContext[/javaee-examples]] >> >> in state [STARTING_PREP] >> >> at >> >> >> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409) >> >> at >> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:299) >> >> at >> >> >> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041) >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1537) >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1518) >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1267) >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100) >> >> at >> >> >> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130) >> >> at >> >> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) >> >> at >> >> >> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) >> >> at >> >> >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416) >> >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >> >> at >> >> >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) >> >> at >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) >> >> at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) >> >> at >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) >> >> at >> >> >> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930) >> >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> >> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >> >> at >> >> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> >> at >> >> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> >> at java.lang.Thread.run(Thread.java:745) >> >> Sep 15, 2015 5:16:49 PM org.apache.catalina.core.ContainerBase >> >> addChildInternal >> >> SEVERE: ContainerBase.addChild: start: >> >> org.apache.catalina.LifecycleException: Failed to start component >> >> [StandardEngine[Catalina].StandardHost[thusitha.com >> >> ].StandardContext[/javaee-examples]] >> >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) >> >> at >> >> >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) >> >> at >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) >> >> at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) >> >> at >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) >> >> at >> >> >> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930) >> >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> >> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >> >> at >> >> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> >> at >> >> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> >> at java.lang.Thread.run(Thread.java:745) >> >> Caused by: org.apache.tomee.catalina.TomEERuntimeException: >> >> org.apache.openejb.DuplicateDeploymentIdException: Application cannot >> be >> >> deployed as it contains deployment-ids which are in use: app: >> >> >> /home/thusitha/Downloads/apache-tomee-plus-1.7.2/abcthusitha/javaee-examples >> >> SecureEJB >> >> AnnotatedEJB >> >> HelloEjbService >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1270) >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1100) >> >> at >> >> >> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:130) >> >> at >> >> >> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) >> >> at >> >> >> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) >> >> at >> >> >> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5416) >> >> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) >> >> ... 10 more >> >> Caused by: org.apache.openejb.DuplicateDeploymentIdException: >> Application >> >> cannot be deployed as it contains deployment-ids which are in use: app: >> >> >> /home/thusitha/Downloads/apache-tomee-plus-1.7.2/abcthusitha/javaee-examples >> >> SecureEJB >> >> AnnotatedEJB >> >> HelloEjbService >> >> at >> >> >> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:691) >> >> at >> >> >> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:652) >> >> at >> >> >> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1261) >> >> ... 16 more >> >> Sep 15, 2015 5:16:49 PM org.apache.catalina.startup.HostConfig >> deployWAR >> >> SEVERE: Error deploying web application archive >> >> >> /home/thusitha/Downloads/apache-tomee-plus-1.7.2/abcthusitha/javaee-examples.war >> >> java.lang.IllegalStateException: ContainerBase.addChild: start: >> >> org.apache.catalina.LifecycleException: Failed to start component >> >> [StandardEngine[Catalina].StandardHost[thusitha.com >> >> ].StandardContext[/javaee-examples]] >> >> at >> >> >> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904) >> >> at >> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) >> >> at >> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) >> >> at >> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095) >> >> at >> >> >> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1930) >> >> at >> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) >> >> at java.util.concurrent.FutureTask.run(FutureTask.java:262) >> >> at >> >> >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> >> at >> >> >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> >> at java.lang.Thread.run(Thread.java:745) >> > >> > >> > >> > Thanks >> > Best Regards >> > -- >> >> >> >> >> >> > > > -- > > --