mark

同学问我在myeclipse中导入web工程后,无法部署,提示Undefined exploded archive location信息,怎么解决?

我没有遇到过,蜘蛛了几秒,原来是webrootdir指向值没有了,可能是在转移项目过程中丢失了这个文件中的内容,或者更好的理由,如果知道请大家告知~

solve:

在工程目录下有个名称为.mymetadata的文件,其中内容为l;

<?xml version="1.0" encoding="UTF-8"?>
<project-module
  type="WEB"
  name="项目名称"
  id="myeclipse.1239240482604"
  [b]context-root="[color=red]/[/color]项目名称"[/b]
  j2ee-spec="1.4"
  archive="项目名称.war">
  <attributes>
    <attribute name="webrootdir" value="WebRoot" />
  </attributes>
</project-module>



问题处在粗体部分,相应加上就OK了!

重新导入工程或者重新打开工具即可!


或者手动操作,更加方便,复制工程名称,然后按照下边这样操作即可!
web项目无法部署情况一:Undefined exploded archive location

图片附件

 

相关文章:

  • 2021-08-22
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-06-29
  • 2021-09-13
  • 2021-08-03
  • 2021-11-30
猜你喜欢
  • 2021-11-22
  • 2022-01-02
  • 2021-07-19
  • 2021-08-12
  • 2021-07-29
  • 2022-12-23
相关资源
相似解决方案