tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: EAR Hot deploy
Date Fri, 04 Jan 2013 13:20:15 GMT
works fine for me, here my config:


$ cat conf/system.properties
# /tmp/unpack needs to exist, can be work dir too
tomee.unpack.dir=/tmp/unpack
openejb.system.apps = false

$ cat conf/tomee.xml
<?xml version="1.0" encoding="UTF-8"?>
<tomee>
  <Deployments dir="apps" autoDeploy="true" />
</tomee>


Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/1/4 José Luis Cetina <maxtorzito@gmail.com>:
> Sorry for not be specific. I have the same problem, Duplicate id when try
> to deploy
> El ene 3, 2013 4:46 PM, "David Blevins" <david.blevins@gmail.com> escribió:
>
>>
>> On Jan 3, 2013, at 8:34 AM, José Luis Cetina <maxtorzito@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.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
View raw message