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,接着發布工程,發布成功!
