您的位置:首页 > 运维架构 > Tomcat

MyEclipse 中Tomcat部署项目:Undefined exploded archive location

2010-12-22 12:14 423 查看
今天下午一个工程突然不能部署了,myeclipse提示Undefined exploded archive location

昨天在工程项目的调试中,突然发现项目不能部署了。错误信息为:
Undefined exploded archive location

原因:
在工程转移过程中,导致工程的配置文件出错;

解决方法:
1.在工程目录下的.mymetadata文件中可能webrootdir被改无效了(把下面内容拷到你的.mymetadate文件中的相应位置上);或者有可能少了这context-root这个属性;添加上这个属性即可,内容如下:
context-root="/上面的name属性值"
2.关掉Eclipse,再启动Eclipse,接着发布工程,发布成功!

示例的.mymetadate如下:

<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="34-Management" context-root="44Management"
id="myeclipse.1289460834781"
j2ee-spec="5.0"
archive="44Management.war">
<attributes>
<attribute name="webrootdir" value="WebRoot" />
</attributes>
</project-module>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: