Myeclipse项目无法部署,提示错误:Undefined exploded archive location


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM