Solution to deployment failure when eclipse releases a project

Source: Internet
Author: User

If a file is locked, you can wait until the lock times out

 

In myeclipse, the Java project is rolled over and modified, and finally the deployment fails. the following error message is displayed:

Deployment failure on Tomcat 6. x. cocould not copy all resources to E: \ apache-Tomcat-6.0.16 \ webapps \ hebbnwebservices. if a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment
E: \ apache-Tomcat-6.0.16 \ webapps \ hebbnwebservices

When you click the "deploy" button again, the following message is displayed:

Undeployment failure cocould not be redeployed because it cocould not be completely removed in the undeployment phase. the most common cuase of this problem is attempting to redeploy while the server is running, which has locked one or more files.

To correct the deployment you will need to stop the server and then redeploy the project before restarting the server.

The solution is to re-Add the JAR file referenced in the project in eclipse. The basic reason is that the previous JAR file does not exist, but the project information also exists, that is, the project. the classpath file also contains references to non-existing jar files.

Right-click the project name, select Properties, select Java build path, select libraries, remove all the jar files in the project, and click "add jars ", add the jar files in the project, and the re-deployment will be normal.

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.