由于个别原因误操作删除.mymetadata文件,会导致把项目部署到tomcat部署时无法点击finish。
解决方案:
导入项目重新生成的.mymetadata文件
< xml version="1.0" encoding="UTF-8" >
<project-module type="WEB" name="你的项目名称" id="myeclipse.1313136539892" j2ee-spec="1.4" archive="你的项目名称.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>
其中project-module少了一个属性:context-root="/你的项目名称",把这个属性加入之后,重启Myeclipse,问题解决。
解决方案:
导入项目重新生成的.mymetadata文件
< xml version="1.0" encoding="UTF-8" >
<project-module type="WEB" name="你的项目名称" id="myeclipse.1313136539892" j2ee-spec="1.4" archive="你的项目名称.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>
其中project-module少了一个属性:context-root="/你的项目名称",把这个属性加入之后,重启Myeclipse,问题解决。