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…
    1.情景展示 spring配置文件报错信息如下: Referenced file contains errors (http://www.springframework.org/schema/context/spring-context-3.0.xsd). For more information, right click on the message in the Problems View and select "Show Details..." 2.解决方案 错误方案:将…
刚刚导入的maven项目的Spring配置文件报错: 大体意思是说: 引用的文件包含错误(http://www.springframework.org/schema/context/springing-context -3.1.xsd).为 更多信息,右击Problems视图中的消息并选择“Show Details…” 解决方法: 在项目上右键选择validate,然后静静等待ecliplse重新验证我们项目的所有文件: validate 验证项目中的文件中代码有没有不规范的地方,有的话会显示红…
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编译器来说,会有个缓存,这样验证的时候他会告…
Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 关于这个错误,导致的原因可能是 一种可能是 之前用的Spring版本,和现在用的不同 对于Eclipse编译器来说,会有个缓存,这样验证的时候他会告诉你版本不统一 Preferences -> General -> Network Connections -> Cache 删除里面的缓存 还…
错误信息: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 and select "Show Details..." 解决办法: 将 Preferences > XML > XML Fil…
问题: java项目在Eclipse中xml有小红叉 Problems:Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd). 解决: Eclipse 中选中项目点击 Progect -->clean 清理一下,删除缓存…
XML code<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN""http://www.springframework.org/dtd/spring-beans.dtd"><beans> 配置你的bean </beans>…
解决方法: 将 Preferences > XML > XML Files > Validation中"Honour all XML schema locations"前的对号去掉.它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果.…
今天打开老项目出现如下错误: 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,即可解决…
解决方案: 第一步:将 Preferences > XML > XML Files > Validation中"Honour all XML schema locations"前的对号去掉.它将禁用指向不同schema位置相同命名空间引用的验证,仅以第一次找到的可验证的XML文件为结果. 第二部:Clean一下Project 即可 两步缺一不可 --------------------- 作者:LIUXUN1993728 来源:CSDN 原文:https://blog…
问题描述: 打开Eclipse突然发现Web工程的servlet.xml突然报了红叉叉,错误信息如下: Referenced file contains errors (http://www.springframework.org/schema/tool/spring-tool-3.0.xsd). For more information, right click on the message in the Problems View and select "Show Details...&qu…
本文转自:http://josh-persistence.iteye.com/blog/2125420 在eclipse中,有时候在xml文件中,特别是于Spring相关的配置文件中,会出现一些不影响程序正常运行的编译错误,如: Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.0.xsd). 可通过如下步骤解决这个编译错误: 1. Spring的版本变更了,但是…
问题如下:原先运行正常的项目,突然在applicationContext.xml 文件头报错 内容:Referenced file contains errors (http://www.springframework.org/schema/tx/spring-tx.xsd). For more   information, right click on the message in the Problems View and select "Show Details..." 原因分析…
转自:http://www.manongjc.com/article/30401.html 在eclipse中开发网页时,经常会遇到写xml文件时第一行无缘无故报错.在最左面的行数上面报出一个小红叉, 点击查看错误信息: Referenced file contains errors (http://www.springframework.org/schema/beans…之类的.我这里是做的是spring的applicationContext.xml文件的,所以会报spring框架的约束格式错…
原文链接:https://blog.csdn.net/zlj1217/article/details/61432437                                                                                                                                                                                               …
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...&…
Referenced file contains errors (file:/D:/TONG/tong/eclipse/config_/xsd/spring-context-4.2.xsd). For more information, right click on the message in the Problems View and select "Show Details..." Spring 版本变更,但是Eclipse的编译器还是使用之前缓存的Spring-beans-*.…
抛出异常 六月 03, 2018 7:40:44 下午 org.springframework.context.support.AbstractApplicationContext prepareRefresh 信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@76fb509a: startup date [Sun Jun 03 19:40:44 CST 2018]; root of…
原来运行正常的项目,突然在applicationContext.xml 文件头报错 总结一下网上的解决方案: 1.有可能网络状况不好导致 如果使用Maven构建项目,spring在加载xsd文件时总是先试图在本地查找xsd文件(spring的jar包中已经包含了所有版本的xsd文件),如果没有找到,才会转向去URL指定的路径下载.所以出现该情况一般是因为断网或spring的官网暂时无法连接. 可以通过在浏览器地址栏输入xsd文件的URL,如:spring-beans的话,输入http://www…
我们需要引用与验证器配置相关的dtd文件,这个文件可以在xwork-core-2.3.1.2.jar下找到(xwork-validator-1.0.3.dtd) 网上有很多处理办法,如下所示: 1.直接修改Eclipse的配置,去掉Eclipse中关于xml的验证,操作方法http://blog.sina.com.cn/s/blog_6a6b141001011xhn.html. 2.找到该DTD文件,然后复制其验证器链接到validation.xm中. 参考: Struts2学习笔记(十三) 输…
一,问题分析 在学习 JavaWeb 的开发,很多时候我们会引用许多 JAR ,以为版本的问题,有时候就会出现这个问题:reference file contains errors (引用文件包含错误).情况如下图所示: 问题提示的错误是: 二.解决方案 解决分案有两种,具体如下: 方案一: 那就是根据错误提示来改,因为 JAR  包中的有版本问题.既然错误中有提示,那么我们就按照错误的提示.将我的 spring-beans 改为 spring-beans-4.3 就可以了. 方案二: 那就如 …
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]Offending resource: file [D:\work\wtgs.…
org.xml.sax.SAXParseException; lineNumber: 20; columnNumber: 422; schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring-beans-4.2.xsd', because 1) could not find the document; 2) the document could not…
Multiple annotations found at this line: - cvc-elt.1: Cannot find the declaration of element 'beans'. - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/beans/spring- beans-3.0.xsd', because 1) could not find…
ERROR - Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx] Offend…
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.or…
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/tx] Offending resource: class path resource [spr…
Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/mvc] 网上其他错误不管,我是因为少了 jta.jar…
明明项目没错误,但application.xml就报了错误,这是什么问题呢? 问题在于我们找不到org/springframework/beans/spring-beans这个包,也就是我们的spring-beans版本错了. 查看相应的包,就可以知道我们的版本是哪个. 然后再spring-beans后面加上我们对应的版本号,就不会出错了.…