Return-Path: X-Original-To: apmail-tomee-commits-archive@www.apache.org Delivered-To: apmail-tomee-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AEC1E10EC5 for ; Mon, 17 Nov 2014 21:20:34 +0000 (UTC) Received: (qmail 90012 invoked by uid 500); 17 Nov 2014 21:20:34 -0000 Delivered-To: apmail-tomee-commits-archive@tomee.apache.org Received: (qmail 89953 invoked by uid 500); 17 Nov 2014 21:20:34 -0000 Mailing-List: contact commits-help@tomee.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tomee.apache.org Delivered-To: mailing list commits@tomee.apache.org Received: (qmail 89844 invoked by uid 500); 17 Nov 2014 21:20:34 -0000 Delivered-To: apmail-openejb-commits@openejb.apache.org Received: (qmail 89815 invoked by uid 99); 17 Nov 2014 21:20:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Nov 2014 21:20:34 +0000 Date: Mon, 17 Nov 2014 21:20:34 +0000 (UTC) From: "Romain Manni-Bucau (JIRA)" To: commits@openejb.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TOMEE-1445) org.apache.openejb.DuplicateDeploymentIdException error when using mutliple Host elements in server.xml MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TOMEE-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14215201#comment-14215201 ] Romain Manni-Bucau commented on TOMEE-1445: ------------------------------------------- You can't deploy twice the same app in the same server instance by spec. But if you change its name (module-name in web.xml/ejb-jar IIRC) then it will work. until 1.5 - maybe 1.6 but I don't recall) - default module name was host/webapp but we changed it to be fully spec compliant to webapp only. Specifying module name you'll get it back - but it means you need to copy twice the war in webapps/host1 and webapps/host2 after having configure host appBases to webapps/host1 and webapps/host2. > org.apache.openejb.DuplicateDeploymentIdException error when using mutliple Host elements in server.xml > ------------------------------------------------------------------------------------------------------- > > Key: TOMEE-1445 > URL: https://issues.apache.org/jira/browse/TOMEE-1445 > Project: TomEE > Issue Type: Bug > Affects Versions: 1.7.0 > Environment: CentOS, Apache HTTPd Web Server as front-end > Reporter: Chris Harris > > I started receiving the following error as of TomEE 1.7.0: > SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/os] > org.apache.openejb.DuplicateDeploymentIdException: Application cannot be deployed as it contains deployment-ids which are in use: app: /home/user/tomee-plus-1.7.0/webapps/os > ContactService > PersistenceTester > at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:663) > at org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:623) > at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1248) > at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1087) > 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:5378) > 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:649) > at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) > at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880) > at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) > at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) > at java.util.concurrent.FutureTask.run(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) > at java.lang.Thread.run(Unknown Source) > The relevant server.xml config: > unpackWARs="true" autoDeploy="false"> > > > > prefix="localhost_access_log." suffix=".txt" > pattern="%h %l %u %t "%r" %s %b" /> > > > www.blah.com > > > > > The issue is that I can't get my website to launch in Prd anymore. It's looks like TomEE is attempting to launch the same web app twice and then running into the duplicate EJB id issue. I notice in catalina.out that the app is started for localhost and then my domain name. > I can't get rid of either Host definition either. Without either, I need to type in my site's domain name WITH TomEE's port number to access the web app. That scenario will not suffice. > I don't recall having this issue in TomEE 1.6.0.1 or 1.6.0.2. -- This message was sent by Atlassian JIRA (v6.3.4#6332)