The undeployment failure project lacks the JAR file.

Source: Internet
Author: User

Solution:

Just add the JAR file referenced in the project again. 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.
.

 

 

Tomcat deployment cocould not copy all resources to or undeployment failure cocould not be redeployed

Tomcat deployment may cause the following problems during deployment:

Deployment failure on Tomcat 6. x. cocould not copy all resources
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
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.

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.