File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Messy undeployment" Watch "Messy undeployment" New topic

Messy undeployment

Nirmala Rayudu

Joined: May 30, 2005
Posts: 14
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.
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..


Alongwith being a good coder, try to be a good professional as well!
I agree. Here's the link:
subject: Messy undeployment
It's not a secret anymore!