This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes Messy undeployment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Messy undeployment" Watch "Messy undeployment" New topic
Author

Messy undeployment

Nirmala Rayudu
Greenhorn

Joined: May 30, 2005
Posts: 14
Hi,
I have noticed that at least in version 5.0.28, that undeployment of a web-app using tomcat manager, removes all the related files/directories of that web-app in both catalina_home/webapp directory and catalina_home/work/<standard-engine>/<host> directory.

I have done the undeployment by clicking the 'undeploy' link for that web-app at http://<host>:8080/manager/html, where <host> is 'localhost' for my configuration.

However, I started using Tomcat 5.5 and 'undeploy' does not cleanup the directories(catalina_home/work/<standard-engine>/<host> , because of which, when I redeploy the application by simply copying the war file to 'catalina_home\webapp' directory, Tomcat is still using old class files for the java classes in my web-app.

I tried restarting Tomcat to get around this problem and that did not do the cleaning properly either and I ran into the same problem with old versions of my class files.

That gives rise to the following questions,
1) Is this a bug with Tomcat 5.5? Does not seem likely to me, because this would be a serious blow to its main funcationality.

2) Are the 'deployment', 'undeployment', 'start', 'stop' and 'reload' supposed to be done in some other way than the one I am doing(Which is using links on http://<host>:8080/manager/html page for the corresponding web-app)? If so, what is it?

3) Are there any settings that need to configured in server.xml to make this work properly?

I greatly appreciate any relevant responses for my questions.
Thanks
Tina Desai
Ranch Hand

Joined: Mar 13, 2003
Posts: 365
Hello there!

One year down the line, I have the same problem.

Did you get any solution to this problem?
Can you share with me your experience?

Thanks in advance..

Regards,
Tina


Alongwith being a good coder, try to be a good professional as well!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Messy undeployment