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/archive/2012/06/09/2542794.html

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐