Referenced file contains errors For more information, right click on the message in the Problems View and select "Show Details..."

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‘.

原文地址:https://www.cnblogs.com/Jeely/p/12419393.html

时间: 2024-10-09 18:51:42

Referenced file contains errors For more information, right click on the message in the Problems View and select "Show Details..."的相关文章

Referenced file contains errors (http://mybatis.org/dtd/mybatis-3-config.dtd). For more information, right click on the message in the Problems View and select &quot;Show Details...&quot;

mybatis配置文件报错Referenced file contains errors mybatis的配置文件报错 The errors below were detected when validating the file "mybatis-3-config.dtd" via the file "mybatis-config.xml".  In most cases these errors can be detected by validating &qu

Referenced file contains errors (http://www.springframework.org/schema/context). For more information, right click on the message in the Problems

spring 配置文件的DTD或schema出问题,一般两种情况: 1.当前网络环境不稳定,按住ctrl+"http://www.springframework.org/schema/context/spring-context.xsd",无法看到配置的链接地址.此时可以这样解决 http://www.springframework.org/schema/context  classpath:/org.springframework/context/config/spring-cont

Referenced file contains errors (http://tiles.apache.org/dtds/tiles-config_3_0.dtd)

java开发时遇到的问题,之前还是好好的,没有错误提示.可是今天一打开项目就出现这种问题.真不知道是怎么回事,在这里求助.错误如下: Referenced file contains errors (http://tiles.apache.org/dtds/tiles-config_3_0.dtd). For more information, right click on the message in the Problems View and select "Show Details...&

Spring 配置异常解决办法之Referenced file contains errors

Spring 配置异常解决办法之Referenced file contains errors (http://www.sp Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). For more information, right click on the message in the Problems View and select "Show

Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_4.xsd).

项目导入后,一个tld文件提示以下错误: Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_4.xsd). For more information, right click on the message in the Problems View and select "Show Details-" auth.tld /ROOT/src/main/webapp/WEB

Spring,SpringMVC,Mybatis等配置文件报错解决(Referenced file contains errors)

今天自己搭建了ssm框架,头文件什么的都是拷贝的笔记的,本来不会出错.可是偏偏报错(如下): Referenced file contains errors (http://www.ibatis.com/dtd/sql-map-config-2.dtd). For more information, right click on the message in the  Problems View and select "Show Details..." 整整折腾了一上午,也没解决.网上

Spring配置文件中突然出现异常Referenced file contains errors

Referenced file contains errors (http://cxf.apache.org/schemas/jaxws.xsd). For more information, right click on the message in the Problems View and select "Show Details..." 在Eclipse IDE中的一个J2EE工程,之前是好好的,一段时间没去搭理. 有一天需要在项目中加点东西,打开工程一看,其中一个Spring

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

今天打开老项目出现如下错误: Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-4.2.xsd). For more information, right click on the message in the Problems View and select "Show Details..."  解决: 然后右键项目,选择Validate,即可解决

Referenced file contains errors (http://www.springframework.org/schema...错误

Referenced file contains errors (http://www.springframework.org/schema...错误 Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告