This may not be a bug as such, but I do not believe it is correct behaviour. It is using the Ant deploy script for a target Tomcat 5.5.12 for Windows using the service. 1. Deploy a WAR to a clean Tomcat using an embedded META-INF/context.xml, path="ROOT" 2. Application is deployed OK, requests succeed OK. 3. Restart Tomcat service 4. Call undeploy of ROOT web application The undeploy fails with FAIL - No context exists for path /ROOT despite the following 3 facts 1. /conf/Catalina/localhost/ROOT.xml exists 2. /webapps/ROOT.war exists 3. /webapps/ROOT (exploded) exists Is it correct that a restart of Tomcat should prevent undeployments of previously deployed webapps?
No, it's not correct, but the ROOT path is a special case, to be avoided.