Deployment failure on Tomcat 6.x. Could not copy all resources to C:/tomcat6/webapps/OAPMS. 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 at C:/tomcat6/webapps/OAPMS
问题已解决,记得之前遇到过一次,但这次和前一次又不一样,解决办法:
1. 查看工程下的.mymetadata 看是否少了一个context-root=“” 属性,少的话,加上,值和前边的name属性一样,比如我的:
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="OAPMS"
id="myeclipse.1191910938406"
context-root="/OAPMS"
j2ee-spec="1.4"
archive="OAPMS.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>
2. 查看.classpath 看 classpathentry 属性是否有工程lib没有的jar文件,删掉部署即可。
Deployment failure on Tomcat 6.x. Could not copy all resources to
最新推荐文章于 2024-11-15 16:38:25 发布