Why I am getting error “web.xml is missing and <failOnMissingWebXml> is set to true” even when web.xml is present under WEB-INF?

倾然丶 夕夏残阳落幕 提交于 2019-12-08 04:55:27

问题


Why I am getting error "web.xml is missing and <failOnMissingWebXml> is set to true" even when web.xml is present under WEB-INF?

This is not duplicate of this question. My issue is different as I already have web.xml file in my WEB-INF folder, but still getting the error.


回答1:


You may have a corrupted Eclipse-specific settings file.

Check out the answer to Spring cannot find file in classpath, but it's right there at the root of the war file.

For me, both problems had the same root cause.



来源:https://stackoverflow.com/questions/51385888/why-i-am-getting-error-web-xml-is-missing-and-failonmissingwebxml-is-set-to-t

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!