The MAVEN redeploy process cannot delete the old project's directory under the Windows system

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.