解决方法:
1.在工程目录下的.mymetadata文件中可能webrootdir被改无效了(把下面内容拷到你的.mymetadate文件中的相应位置上);或者有可能少了这context-root这个属性;添加上这个属性即可,内容如下:
context-root="/上面的name属性值"
2.关掉Eclipse,再启动Eclipse,接着发布工程,发布成功!
.mymetadata文件
<?xml version="1.0" encoding="UTF-8"?>
<project-module
type="WEB"
name="myweb"
id="myeclipse.1202968712015"
context-root="/myweb" j2ee-spec="1.4"
archive="personnel.war">
<attributes>
<attribute value="WebRoot" />
</attributes>
</project-module>
本文详细介绍了如何解决Eclipse中.mymetadata文件的配置问题,具体包括修复webrootdir设置、添加context-root属性,以及重启Eclipse并重新发布工程的步骤。
205

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



