Undefined exploded archive location
- 用Myeclipse部署web系统wlms时候报如下错误:

则很有可能是你自己项目环境信息有问题,修改下就可以了。 打开项目目录: .mymetadata 文件
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="wlms"
id="myeclipse.1345519075437"
j2ee-spec="1.4"
archive="wlms.war">
<attributes>
<attribute name="webrootdir" value="/web" />
</attributes>
</project-module>
插入context-root 的值就可以, 值就是上面name的值
context-root="/wlms"
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="wlms"
id="myeclipse.1345519075437"
context-root="/wlms"
j2ee-spec="1.4"
archive="wlms.war">
<attributes>
<attribute name="webrootdir" value="/web" />
</attributes>
</project-module>
在重新打开Myeclipse,就可以部署项目。 其实context-root的值可以在Myeclipse中直接配置
- 右击项目,选择Properties
把值设置为项目名称就可以了
记得重启Myeclipse