You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Jonathan Gallimore <jo...@gmail.com> on 2008/02/22 00:14:46 UTC
Deploying an EAR with Tomcat
Hi,
I just gave this:
http://www.nabble.com/Tomcat-hot-deployment-td13287215.html a go, and I
encountered a minor problem where all my beans were being deployed
twice, and I was getting this error:
org.apache.openejb.DuplicateDeploymentIdException: Application cannot be
deployed as it contains deployment-ids which are in use: app (and a list
of all my EJBs)
Looking at what was going on with a debugger attached it looked like the
app was actually being deployed twice, once with the name of the
directory that the ear is expanded into, and once with the name of the
actual ear itself.
If I stop Tomcat, delete the ear file from the webapps folder, and leave
the folder the ear was expanded into alone, and restart Tomcat, it works
perfectly.
Am I doing something wrong?
Cheers
Jon
Re: Deploying an EAR with Tomcat
Posted by David Blevins <da...@visi.com>.
On Feb 21, 2008, at 3:14 PM, Jonathan Gallimore wrote:
> Hi,
>
> I just gave this: http://www.nabble.com/Tomcat-hot-deployment-td13287215.html
> a go, and I encountered a minor problem where all my beans were
> being deployed twice, and I was getting this error:
>
> org.apache.openejb.DuplicateDeploymentIdException: Application
> cannot be deployed as it contains deployment-ids which are in use:
> app (and a list of all my EJBs)
>
> Looking at what was going on with a debugger attached it looked like
> the app was actually being deployed twice, once with the name of the
> directory that the ear is expanded into, and once with the name of
> the actual ear itself.
>
> If I stop Tomcat, delete the ear file from the webapps folder, and
> leave the folder the ear was expanded into alone, and restart
> Tomcat, it works perfectly.
>
> Am I doing something wrong?
Hmm... Sounds like the directory watching code is clearly getting
triggered while we are in the process of (or right after) we deploy
the ear file. The outcome is good as a second copy will not be
deployed, just the error message is annoying and we should find some
way to prevent that second deploy. Not quite sure how.
-David