`

myeclipse tomcat 部署错误

阅读更多
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文件,删掉部署即可。
参考:http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-16783.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics