Tomcat probably has a memory of the first time it deployed the app. It is as if you had written a <Context ...> for that app in server.xml. It is already known behavior that Tomcat won't expand your app to a new directory if you defined a <Context ....> in server.xml and you put a .war file with the same name as is in the "path" attribute of the <Context ...> (minus .war).
I'm not saying this is right, but it may be what is happening. Restarting the sever would clear Tomcat memory of this and things would work as expected...for the first deploy only. Then you'd get the same behavior back. You could clear this up by putting a "context.xml" in the
META-INF directory of your webapp. This is a context configuration file and contains a single <Context ....> with features you want for that context.
Jake
At 04:25 PM 12/5/2002 +0100, you wrote:
Hello,
I use Tomcat 4.1.16 on Windows with Eclipse 2.0 and the Lomboz 0.95 J2EE plugin for Tomcat integration.
I have a problem with auto deployment.
When I start Tomcat from the Eclipse I can deploy the webapp. It will be packed into a war file and copied into Tomcat's webapps directory, will be unpacked from Tomcat and everythings fine.
My problem is that when I undeploy the webapp (delete the .war file) and deploy it again no update occurs.
First I thought I should also delete the unpacked war's directory, because it's said in the documentation that .wars are only unpacked if no unpacked dir exists, but it didn't help.
Even if I delete .war and its unpacked directory Tomcat won't redeploy the war file when my IDE copies the .war into /webapps. No unpacked directory is created in this case and thus no I get no updated pages.
So actually Tomcat neither unpacks nor autodeploys .war files that are copied into /webapps when I do that for the second time. Completely removing the webapp doesn't allow redeployment.
Is there any way to allow hot redeployment with .war?
Currently I'm using the standard server.xml setting. So liveDeploy, autoDeploy, unpackwars etc. is set "true".
Thx
mech
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
