Myeclipse 部署管理界面 Manage Deployments 进行Tomcat部署报错,Java Web项目部署不了, 见下图:
解决方法如下:Myeclipse切换至Navigate视图 ,在相应工程项目下找到.mymetadata文件,修改
<project-module type="WEB" name="exercise" id="myeclipse.1205217725140" context-root="/exercise" j2ee-spec="1.4" archive="exercise.war"> <attributes> <attribute name="webrootdir" value="/web" /> </attributes> </project-module>
更改两个地方:
context-root="/exercise" 是项目的根目录
<attribute name="webrootdir" value="/web" /> value的值必须是Web的根目录,如常见的webroot,webcontent.