tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Luis Cetina <maxtorz...@gmail.com>
Subject Re: EAR Hot deploy
Date Thu, 03 Jan 2013 16:34:40 GMT
I tried to use your recommended option (# 1) and im still having deployment
id issues.

Im using apache-tomee-1.5.2-20130103.040941-21-webprofile


2012/12/29 David Blevins <david.blevins@gmail.com>

>
> On Dec 28, 2012, at 10:54 AM, José Luis Cetina <maxtorzito@gmail.com>
> wrote:
>
> > Well, this could unpack my ear file  (which cotains ejb module + webapp
> > modules) dropping my ear file to apps but im getting a
> > DuplicateDeploymentIdException.
> >
> > SEVERE: Unable to deploy collapsed ear in war
> >
> StandardEngine[Catalina].StandardHost[localhost_ear].StandardContext[/myenterprise-ear-1.0-SNAPSHOT]
> > org.apache.openejb.DuplicateDeploymentIdException: Application cannot be
> > deployed as it contains deployment-ids which are in use: app:
>
> Yeah, definitely don't do that.  There's an issue that needs to be fixes
> with regards to putting EARs in the webapps/ directory (or any Tomcat
> appbase).  Once the EAR is unpacked, Tomcat will try to deploy the unpacked
> EAR as a webapp and this essentially get deployed twice.
>
> I've done some work in this area, so there are two options:
>
>   1. [Recommended] In the tomee.xml edit `<Deployments dir="apps"/>` to be
> `<Deployments dir="apps" autoDeploy="true"/>`
>   2. Use `webapps`, but unpack to a different location by setting the
> `tomee.unpack.dir` system property to `work`
>
>
> -David
>
>


-- 
-------------------------------------------------------------------
*SCJA. José Luis Cetina*
-------------------------------------------------------------------

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message