mark
同学问我在myeclipse中导入web工程后,无法部署,提示Undefined exploded archive location信息,怎么解决?
我没有遇到过,蜘蛛了几秒,原来是webrootdir指向值没有了,可能是在转移项目过程中丢失了这个文件中的内容,或者更好的理由,如果知道请大家告知~
solve:
在工程目录下有个名称为.mymetadata的文件,其中内容为l;
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="项目名称"
id="myeclipse.1239240482604"
[b]context-root="[color=red]/[/color]项目名称"[/b]
j2ee-spec="1.4"
archive="项目名称.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>
问题处在粗体部分,相应加上就OK了!
重新导入工程或者重新打开工具即可!
或者手动操作,更加方便,复制工程名称,然后按照下边这样操作即可!
图片附件