The redeploy process cannot delete the old project's directory under Windows system
The error message is in the Catalina log file under $tomcat_home/logs, as follows:
Information: undeploying context [/web-loab] October 11, 2014 3:52:26 pm Org.apache.catalina.startup.ExpandWar Deletedir Serious: [ D:\tomcat\apache-tomcat-7.0.56\webapps\web-loab\WEB-INF] could not being completely deleted. The presence of the remaining files may cause problems
probably because TOMCAT is still using this directory, cannot be deleted, must modify $tomcat_home/conf/context.xml
<?xml version= ' 1.0 ' encoding= ' utf-8 '?><!--Licensed to the Apache software Foundation (ASF) under one or more C Ontributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); You are not a use of this file except in compliance with the License. Obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 unless required by applicable or agreed to writing, software distributed under the License are distributed on a "as is" BASIS, without warranties or CONDITIONS of any KIND, either express or implied. See the License for the specific language governing permissions and limitations under the license.--><!--the Conte NTS of this file is loaded for each Web application--><context antijarlocking= "true" antiresourcelocking= "true "> <!--Default set of monitorEd Resources-<WatchedResource>WEB-INF/web.xml</WatchedResource> <!--uncomment this to disable Session persistence across Tomcat restarts-<!--<manager pathname= ""/>-<!--Uncomm ENT-Enable Comet connection tacking (provides events on session expiration as well as WebApp lifecycle)-- > <!--<valve classname= "Org.apache.catalina.valves.CometConnectionManagerValve"/>--></contex T>
That is, add "antijarlocking", "antiresourcelocking" property on the Context tab, and all set to True!
Reference article "The development process using the Tomcat MAVEN plugin for continuous quick section "
The MAVEN redeploy process cannot delete the old project's directory under the Windows system