Referenced file contains errors For more information, right click on the message in the Problems V

Posted jeely

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Referenced file contains errors For more information, right click on the message in the Problems V相关的知识,希望对你有一定的参考价值。

Referenced file contains errors
(http://www.springframework.org/schema/context/spring-context-3.1.xsd).
For more information, right click on the message in
the Problems View and select "Show Details..."

解决办法1:
在<?xml version="1.0" encoding="UTF-8"?>
下面加上<xml-body></xml-body>,等builder 完毕后再去掉,OK

解决办法2:
将 Preferences > XML > XML Files > Validation中"Honour all XML schema locations"前的对号去掉。它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果。

解决办法3:
点击eclipse左上角菜单栏 Project->clean 清理一下你所出现问题的项目。不仅这个问题,还有很多奇怪的问题都可以通过这种方式解决

解决办法4:
首先为了确保 Eclipse 可以从远程拿到 xsd 文件,到 Window -> Preferences -> General -> Network Connections -> Cache 下的 Cache entries 框内检查所需要的文件是否正确,如果不确定,就点击 "Remove All",然后右击当前的 Project 选择 Validator,Eclipse 会重新加载 xsd 文件;


Multiple annotations found at this line:
- schema_reference.4: Failed to read schema document ‘http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd‘, because 1) could
not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘mvc:interceptors‘.

以上是关于Referenced file contains errors For more information, right click on the message in the Problems V的主要内容,如果未能解决你的问题,请参考以下文章

XXXAction-validation.xml文件中报错:Referenced file Contains errors

Referenced file contains errors (http://www.springframework.org/...解决

Referenced file contains errors (xml文件第一行小红叉错误)

Referenced file contains errors (xml文件第一行小红叉错误)

Eclipse Xml编译错误Referenced file contains errors - spring-beans-4.0.xsd

Eclipse Xml编译错误Referenced file contains errors - spring-beans-4.0.xsd