在MyEclipse不能部署Web项目

来源:互联网 发布:淘宝在线客服兼职 编辑:程序博客网 时间:2024/05/19 18:44

错误消息:

1、Deployment failure on Tomcat  6.x. Could not copy all resources to d:\apache-tomcat-6.0.16\webapps\smip. 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 d:\apache-tomcat-6.0.16\webapps\smip

问题出现的原因:项目的.classpath文件中有对不存在的.jar文件的引用

解决方法:1、删除所有对jar文件的引用,重新添加引用。

     2、对照.classpath文件中的classpathentry属性引用的.jar文件和项目lib文件夹中的.jar文件,删除存在于.classpath文件中却不存在于lib文件夹中的节点。

     3、重新发布

2、不能部署web项目

原因:Context-root丢失
解决方法:
在项目上面右击->properties->MyEclipse->Web
在Web Context-root中添加项目名 
示例:
Web-root floder:/WebRoot Web Context-root: /projectName

原创粉丝点击