MyEclipse 部署工程到Tomcat 5.0 失败,提示"undefined exploded archive location "。
经过反复检查,终于解决了.
.mydetadata 文件内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="DwrSample"
id="myeclipse.1197507091265"
context-root="/dwrsample"
j2ee-spec="1.4"
archive="DwrSample.war">
<attributes>
<attribute name="webrootdir" value="web" />
</attributes>
</project-module>
红色字体不能少尤其是'context-root' 部分。'webrootdir'指定为你的web根目录即可。
本文解决了一个关于使用MyEclipse部署应用到Tomcat5.0时出现的undefinedexplodedarchivelocation错误的问题。通过正确配置.mydetadata文件,特别是确保'context-root'属性的存在,并设置正确的'webrootdir'值。
250

被折叠的 条评论
为什么被折叠?



