Failed to read schema document 'http://www.springframework.org/schema/mvc/spring-mvc.xsd'

Multiple annotations found at this line:
- cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element ‘mvc:default-servlet-handler‘.
- schema_reference.4: Failed to read schema document ‘http://www.springframework.org/schema/mvc/spring-mvc.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>.

当时是查阅了  https://blog.csdn.net/bluishglc/article/details/7596118,虽然并未使用作者提到的方法(写的很好,推荐),我是将报错的删了,然后重新添加上就莫名其妙好用了,不过还是谢谢。

Failed to read schema document 'http://www.springframework.org/schema/mvc/spring-mvc.xsd'

原文地址:https://www.cnblogs.com/caixiaoyou/p/9754627.html

时间: 2024-11-04 00:41:55

Failed to read schema document 'http://www.springframework.org/schema/mvc/spring-mvc.xsd'的相关文章

Failed to read schema document &#39;http://code.alibabatech.com/schema/dubbo/dubbo.xsd&#39;问题解决方法

或者报错: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:annotation-c

onfiguration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security]

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.

Unable to locate Spring NamespaceHandler for XML schema namespace[http://www.springframework.org/schema/security]

使用maven构建spring security的一个demo时出现了这个问题,网上找了很长时间,很多答案都不适合自己. 1.一开始根据提示以为是xsd和jar包的版本冲突问题,参考了这篇文章 http://www.baeldung.com/unable-to-locate-spring-namespacehandler-for-xml-schema-namespace, 修改xsd和jar包版本一致,但是还是报同样的问题. 2.后来找到一些答案可能是META-INF文件中spring.sche

Spring如何加载XSD文件(org.xml.sax.SAXParseException: Failed to read schema document错误的解决方法)

本文原文连接: http://blog.csdn.net/bluishglc/article/details/7596118 ,转载请注明出处! 有时候你会发现过去一直启动正常的系统,某天启动时会报出形如下面的错误: [plain] view plaincopy org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.springframework.org/sche

(转)解决dubbox-demo-provider.xml报错的问题:提示Failed to read schema document

背景:在eclipse项目中,经常会遇到xml文件提示找不到.xsd文件的情况.很有必要弄清xsd文件的加载过程! 1 解决过程 dubbo-demo-provider导入eclipse后dubbox-demo-provider.xml报错详情: Multiple annotations found at this line: - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be

Failed to read schema document

转自:http://eric-yan.iteye.com/blog/1908470 问题描述: web项目web.xml编译错误: schema_reference.4: Failed to read schema document 'http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd', because 1)  could not find the document; 2) the document could not be read; 3) the

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编译器来说,会有个缓存,这样验证的时候他会告

Spring MVC报异常:org.springframework.web.util.NestedServletException: Request processing failed

在使用SpringMVC绑定基本类型(如String,Integer等)参数时,应通过@RequestParam注解指定具体的参数名称,否则,当源代码在非debug模式下编译后,运行时会引发HandlerMethodInvocationException异常,这是因为只有在debug模式下编译,其参数名称才存储在编译好的代码中. 譬如下面的代码会引发异常: @RequestMapping(value = "/security/login", method = RequestMethod

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编译器来说,会有个缓存,这样验证的时候他会告诉你版本不统一 Preferences -> General -> Network Connections -> Cache 删除里面的缓存 还