tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Harris (JIRA)" <>
Subject [jira] [Commented] (TOMEE-1445) org.apache.openejb.DuplicateDeploymentIdException error when using mutliple Host elements in server.xml
Date Mon, 08 Dec 2014 20:20:13 GMT


Chris Harris commented on TOMEE-1445:

Hi, [~romain.manni-bucau].

Yes.  I was using an Alias, but it was also pointing to the webapps directory.  Having my
localhost Host definition and domain Host definition both pointing to the webapps directory
was causing the app to be deployed twice.  It was just my misunderstanding of Tomcat configuration.

Thanks for your help.

> org.apache.openejb.DuplicateDeploymentIdException error when using mutliple Host elements
in server.xml
> -------------------------------------------------------------------------------------------------------
>                 Key: TOMEE-1445
>                 URL:
>             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(
> 	at org.apache.openejb.assembler.classic.Assembler.createApplication(
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(
> 	at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(
> 	at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(
> 	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
> 	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(
> 	at org.apache.catalina.core.StandardContext.startInternal(
> 	at org.apache.catalina.util.LifecycleBase.start(
> 	at org.apache.catalina.core.ContainerBase.addChildInternal(
> 	at org.apache.catalina.core.ContainerBase.addChild(
> 	at org.apache.catalina.core.StandardHost.addChild(
> 	at org.apache.catalina.startup.HostConfig.deployWAR(
> 	at org.apache.catalina.startup.HostConfig$
> 	at java.util.concurrent.Executors$ Source)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
> 	at Source)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$ Source)
> 	at Source)
> The relevant server.xml config:
> <Host name="localhost" appBase="webapps" 
>             unpackWARs="true" autoDeploy="false">
>         <!-- SingleSignOn valve, share authentication between web applications
>              Documentation at: /docs/config/valve.html -->
>         <!--
>         <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
>         -->
>         <!-- Access log processes all example.
>              Documentation at: /docs/config/valve.html
>              Note: The pattern used is equivalent to using pattern="common" -->
>         <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
>                prefix="localhost_access_log." suffix=".txt"
>                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
>       </Host>
>       <Host name="" appBase="/home/user/tomee-plus-1.7.0/webapps">
>           <Alias></Alias>
>           <Context path="/os" reloadable="true" docBase="/home/user/tomee-plus-1.7.0/webapps/os/"/>
>           <Context path="" reloadable="true" docBase="/home/user/public_html"/>
>           <Context path="/tomee" privileged="true" docBase="/home/user/tomee-plus-1.7.0/webapps/tomee"/>
>       </Host>
> 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
> 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 or

This message was sent by Atlassian JIRA

View raw message