Myeclipse项目无法部署,提示错误:Undefined exploded archive location

1、错误提示:Undefined exploded archive location

2、出现此错误的可能原因:在工程转移过程中,导致工程的配置文件出错

3、解决方法:

在工程目录下的.mymetadata文件中有可能少了context-root这个属性;添加上这个属性即可,内容如下: context-root="/上面的name属性值"

示例:

<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="maxRobert"
id="myeclipse.1334183759142"
j2ee-spec="1.4"
archive="maxRobert.war" context-root="/maxRobert">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>


4、关掉Myeclipse,再启动Myeclipse,接着发布工程,发布成功!

原文地址:https://www.cnblogs.com/totozlj/p/2542794.html