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