Cannot undeploy application on Tomcat

Go To StackoverFlow.com

0

I'm trying to undeploy an application in Tomcat manager web UI but not success.

I've deleted all .war files and folders in both webapps and work/catalina but when I list application, I still can see it on the list. Tomcat say "OK" but the application cannot be remove. Can someone tell me why, please?

2012-04-04 04:46
by user804293
see http://stackoverflow.com/questions/484271/tomcat-undeploy-does-not-remove-web-application-artificats and http://www.velocityreviews.com/forums/t146407-how-to-delete-an-application-from-tomcat.htm - Amit 2012-04-04 04:52


0

You have a form of memory leak. The application (or possibly a library it is using) has opened a file but failed to close it. The open file(s) and any directories that contain it/them can not be deleted. Tomcat therefore auto deploys them as a new web application on the next auto deploy check.

Work-arounds / solutions depend on exact Tomcat version (which you failed to state in your question).

2012-04-04 18:46
by Mark Thomas
Hi Mark. I'm using tomcat v5.5.26 and running on a Linux box (actually, it's an Avaya Voice Portal). And I CAN delete files and directory that contains the application . Do you have any suggestion - user804293 2012-04-05 06:57
Hmm. Not exactly the problem I thought it was from your description. lsof will tell you what files are open on Linux. Are you sure you are deleting files from the right place? If Tomcat has deployed an app lsof will show which files it is using - Mark Thomas 2012-04-05 11:27
Ads