MyEclipse发布项目报错Undefined exploded archive location

来源:互联网 发布:淘宝如何卖花茶 编辑:程序博客网 时间:2024/06/01 10:24


起因:

项目发布过程中删除发布项目导致再次发布时报错:

Undefined exploded archive location

造成了配置文件出错


解决方法:
          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="ExtTest"
  id="myeclipse.1350294348000"
  context-root="/ExtTest"
  j2ee-spec="5.0"
  archive="ExtTest.war">
  <attributes>
    <attribute name="webrootdir" value="WebRoot" />
  </attributes>
</project-module>



原创粉丝点击