JavaEar 专注于收集分享传播有价值的技术资料

5个回答

    最佳答案
  1. 参考答案2
  2. I had the same issue, and I fixed it. Please follow the steps below, and you can create your war file.

    1. Right-click on folder project.
    2. Click on properties.
    3. Go to project facets.
    4. Activate, if necessary.
    5. Scroll down to Configuration and mark Dynamic Web Module.

    This works for me.

  3. 参考答案3
  4. In my case error went off when the war file name matched the project name of the eclipse. Its easy to choose one from the drop down box.

    enter image description here

  5. 参考答案4
  6. I am not sure about the exact cause. But this gets resolved most of the times if you give the exporting project war file name just same as the project name in the IDE

  7. 参考答案5
  8. In Eclipse STS

    1. Right-click on folder project.
    2. Click on properties.
    3. Go to project facets.
    4. Choose your Java 1.8
    5. Scroll down to Configuration and mark Dynamic Web Module.

    After that, it works fine.