解决xml 中出现的Referenced file contains errors
2017-09-13 15:06
447 查看
今天在配置Spring + Mongodb 环境时,出现了一个令人诧异的Error,如图所示:
看了网络上的评论,捣鼓了半天也没成功。后来一想会不会是版本问题,结果还真是。
解决方案如下:
1. 首先为了确保 Eclipse 可以从远程拿到 xsd 文件,到 Window -> Preferences -> General -> Network Connections -> Cache 下的 Cache entries 框内检查所需要的文件是否正确,如果不确定,就点击 "Remove All",然后右击当前的 Project 选择 Validator,Eclipse
会重新加载 xsd 文件;
2. 如果错误依旧,那就需要删掉 xsd 文件的版本号,例如: http://www.springframework.org/schema/context/spring-context-3.0.xsd
改成: http://www.springframework.org/schema/context/spring-context.xsd
然后就OK了,继续探索之路~
看了网络上的评论,捣鼓了半天也没成功。后来一想会不会是版本问题,结果还真是。
解决方案如下:
1. 首先为了确保 Eclipse 可以从远程拿到 xsd 文件,到 Window -> Preferences -> General -> Network Connections -> Cache 下的 Cache entries 框内检查所需要的文件是否正确,如果不确定,就点击 "Remove All",然后右击当前的 Project 选择 Validator,Eclipse
会重新加载 xsd 文件;
2. 如果错误依旧,那就需要删掉 xsd 文件的版本号,例如: http://www.springframework.org/schema/context/spring-context-3.0.xsd
改成: http://www.springframework.org/schema/context/spring-context.xsd
然后就OK了,继续探索之路~
相关文章推荐
- j2ee项目中xml配置文件出现错误Referenced file contains errors
- applicationContext.xml 是出现 Referenced file contains errors
- 配置 applicationContext.xml 是出现 Referenced file contains errors
- 配置 applicationContext.xml 是出现 Referenced file contains errors
- Spring项目出现Referenced file contains errors的 解决方法
- servlet.xml 出现 Referenced file contains errors(http://.......)
- Spring 配置异常解决办法之Referenced file contains errors (http://www.sp
- Eclipse Xml编译错误Referenced file contains errors - spring-beans-4.0.xsd
- 解决Referenced file contains errors(struts-2.0.dtd)
- 解决Referenced file contains errors(struts-2.3.dtd)
- 搭建hibernate.cfg.xml时配合错误分享Referenced file contains errors
- Eclipse Xml编译错误Referenced file contains errors - spring-beans-4.0.xsd
- 关于:Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.2错的解决
- Referenced file contains errors 解决方法
- XML Referenced file contains errors
- 关于Referenced file contains errors 解决方法
- Referenced file contains errors(....)for more information,right click ....解决办法
- Referenced file contains errors(project-aware://org/springframework/beans/factory/xml/spring-beans-4
- Referenced file contains errors (http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd)的解决
- XML错误信息Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.0.xsd). For more information, right click on the message in the Problems View ...