The Myeclipse copy a project and deployment issues
Posted on 2013-12-26 10:11 ChanHuman 阅读(392) 评论(0) 编辑 收藏 举报The Myeclipse8 copy a project and deployed, there will be
An existing resource has been found at location D: \ apache-tomcat-6.0.24 \ webapps \ project-old.
Deployment of project project-new will replace this resource. Please specify the action you wish to take during deployment
Solution:
Project Right Properties-> Myeclipse-> Web-> Web Context-root into the deployment of a new project name on the list.
Effect is equivalent to under the item. Mymetadata in the context-root = "/ xxxx" the value of new projects into the deployment of the name, but I really try to directly modify it not work here.
1.An existing resource has been found at location
这应该是你想部署的项目到了tomcat_home/webapp下面引发冲突而造成,仔细看哪个对话框中的部署路径,你可能会发现问题,这时你要修改.mymetadata的配置信息,把当中的context-root="/老项目名"改成context-root="/新项目名",就ok了。
2.Deployment failure on Tomcat 5.x. Could not copy all resources to
原因是你.CLASSPATH中的配置信息和你web-inf/lib下的jar包不能对应造成,按照你web-inf/lib下的jar包名,然后再对.CLASSPATH中的信息进行增添或删除,就ok了。
所以如果以后在部署的时候发现了问题,不妨从.CLASSPATH和.mymetadata这两个配置文件下手,可能会帮你解决一些问题。
3.Deployment is out of date due to changes in the underlying project contents.
我不太清楚这个具体的错误原因,只不过我解决了它。之前WEB-INF/lib下没有jar文件就部署,所以出现了这个问题,把所有的jar文件放入WEB-INF/lib下后,就ok了。