web.xml报错Referenced file contains errors(转)

myeclipse项目下的web.xml文件 一个大红错误,虽然不影响整个项目运行,但鼠标放上去提示:

Referenced file contains errors

解决方法:

把web.xml下的

xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee   改为:xsi:schemaLocation= "http://JAVA.sun.com/xml/ns/j2ee   

即把其中的 java 改为大写的 JAVA 就可以了。

原文地址:https://www.cnblogs.com/com-wushuang/p/5307412.html