On Jan 3, 2013, at 8:34 AM, José Luis Cetina <maxtorz...@gmail.com> wrote:
> I tried to use your recommended option (# 1) and im still having deployment > id issues. > If you have any details on what doesn't work, that'd be great. -David > 2012/12/29 David Blevins <david.blev...@gmail.com> > >> >> On Dec 28, 2012, at 10:54 AM, José Luis Cetina <maxtorz...@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* > -------------------------------------------------------------------