Hi, first can you try the lastest snapshot please: https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/1.1.0-SNAPSHOT/
do you put your ejbmodule in your webapp too? any chance you share a sample to reproduce? - Romain 2012/6/4 almos <al...@ukr.net> > Hello, > > I am facing strange following problem when using application.xml in my EAR > file. > > 1. I am using maven to build EAR which contains JAR with EJB components and > one web application WAR > 2. Maven automatically creates application.xml in the META-INF of my EAR > 3. When deploying EAR on TomEE+ 1.0 deploy succeeds - web application and > EJB's gets deployed and works fine but I get annoying exception in the log > files: > > SEVERE: Unable to deploy collapsed ear in war /BMM-0.0.1-SNAPSHOT: > Exception: Application cannot be deployed as it contains deployment-ids > which are in use: app: > /Volumes/Work/java/apache-tomee-plus-1.0.0/webapps/BMM-0.0.1-SNAPSHOT > Bean1 > Bean2 > Bean3 > org.apache.openejb.DuplicateDeploymentIdException: Application cannot be > deployed as it contains deployment-ids which are in use: app: > /Volumes/Work/java/apache-tomee-plus-1.0.0/webapps/BMM-0.0.1-SNAPSHOT > Bean1 > Bean2 > Bean3 > at > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:540) > at > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:506) > at > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:634) > at > > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:588) > at > > org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117) > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > at > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) > at > > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099) > at > > org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:680) > 04.06.2012 18:18:25 org.apache.catalina.core.ContainerBase addChildInternal > SEVERE: ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: Failed to start component > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/BMM-0.0.1-SNAPSHOT]] > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:895) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) > at > > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099) > at > > org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:680) > 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: > /Volumes/Work/java/apache-tomee-plus-1.0.0/webapps/BMM-0.0.1-SNAPSHOT > Bean1 > Bean2 > Bean3 > at > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:641) > at > > org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:588) > at > > org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:117) > at > > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > at > > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > at > > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 11 more > Caused by: org.apache.openejb.DuplicateDeploymentIdException: Application > cannot be deployed as it contains deployment-ids which are in use: app: > /Volumes/Work/java/apache-tomee-plus-1.0.0/webapps/BMM-0.0.1-SNAPSHOT > Bean1 > Bean2 > Bean3 > at > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:540) > at > > org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:506) > at > > org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:634) > ... 17 more > 04.06.2012 18:18:25 org.apache.catalina.startup.HostConfig deployDirectory > SEVERE: Error deploying web application directory > /Volumes/Work/java/apache-tomee-plus-1.0.0/webapps/BMM-0.0.1-SNAPSHOT > java.lang.IllegalStateException: ContainerBase.addChild: start: > org.apache.catalina.LifecycleException: Failed to start component > > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/BMM-0.0.1-SNAPSHOT]] > at > > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:898) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:871) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:615) > at > > org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1099) > at > > org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1621) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:680) > > > > > > Generated application.xml looks following: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE application PUBLIC > "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" > "http://java.sun.com/dtd/application_1_3.dtd"> > <application> > <display-name>BMM EAR module</display-name> > <module> > <ejb>backend-0.0.1-SNAPSHOT.jar</ejb> > </module> > <module> > <web> > <web-uri>frontend-0.0.1-SNAPSHOT.war</web-uri> > <context-root>/frontend</context-root> > </web> > </module> > </application> > > So eventually after deploy succeeds TomEE unpacks EAR and it looks like > that > after unpack it tries to deploy it once more, however I am not sure. > > Does anybody seen this? How can I fix this or just disable EAR unpack in > the > web apps? > > Thanks, > Alex > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/DuplicateDeploymentIdException-when-deploying-ear-with-application-xml-tp4655362.html > Sent from the OpenEJB User mailing list archive at Nabble.com. >