org.springframework.beans.factory.BeanDefinitionStoreException:

版权声明:博客知识产权来源命运的信徒,切勿侵权 https://blog.csdn.net/qq_37591637/article/details/87970687

错误信息

     今天在做spring+hibernate整合的时候,报了如下错误,我提炼了重要的信息:

org.springframework.beans.factory.BeanDefinitionStoreException:Parser configuration exception parsing XML from class path resource [applicationContext.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [gnu.xml.dom.JAXPFactory@1f427f2e] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.
    at cn.com.compent.Test.main(Test.java:9)


Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [gnu.xml.dom.JAXPFactory@1f427f2e] does not support XML Schema. Are you running on Java 1.4 with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support. at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(DefaultDocumentLoader.java:102)
Caused by: java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage


我百度了很多,也看了不少大佬们的解决方案:

总结:一般都是jar包的问题,受到引入的其他的jar包的影响;

解决方案

由于我不知道是哪一个jar包影响了,我把所有的jar包都删除了,然后重新导入ssh框架所需要的jar包;

ssh框架所需完整的jar包:https://download.csdn.net/download/qq_37591637/10977763

猜你喜欢

转载自blog.csdn.net/qq_37591637/article/details/87970687