Eclipse来开发Web项目,有时候会遇到这种问题,就是项目不能发布。

  错误原因:在项目的最外层目录下有一个.mymetadata的属性文件,内容如下:

<?xml version="1.0" encoding="UTF-8"?>

<project-module

  type="WEB"

  name="SMobile"

 

  j2ee-spec="1.4"

  archive="SMobile.war">

  <attributes>

    <attribute name="webrootdir" value="WebRoot" />

  </attributes>

</project-module>

  错误的原因就是配制中少了行代码:context-root="/项目名",只需要在id=myeclipse.1207044468078”后面加上这行代码,然后将Eclipse重启就可以了。

相关文章:

  • 2022-01-22
  • 2021-07-02
  • 2021-06-08
  • 2021-05-12
  • 2021-10-19
  • 2021-09-12
  • 2022-01-05
  • 2021-09-03
猜你喜欢
  • 2021-04-03
  • 2021-10-12
  • 2021-12-30
  • 2021-12-29
  • 2021-09-28
  • 2021-07-25
  • 2021-07-02
相关资源
相似解决方案