Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found

来源:互联网 发布:学软件哪里好 编辑:程序博客网 时间:2024/05/22 11:56
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from file [D:/workspace/oa/WebRoot/WEB-INF/spring/applicationContext-common.xml]; nested exception is javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found
    at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)

原因:缺少Xerces.jar包
--------------------------------------
Xerces是一个开放源代码的XML语法分析器
 Xerces-C++ 的前身是 IBM 的 XML4C 项目。XML4C 和 XML4J 是两个并列的项目,而 XML4J 是 Xerces-J——Java 实现——的前身。IBM 将这两个项目的源代码让与 Apache 软件基金会(Apache Software Foundation),他们将其分别改名为 Xerces-C++ 和 Xerces-J。注:“Xerces-C”和“Xerces-C++”是同一个东西。
--------------------------------------
可以从http://archive.apache.org/dist/xml/xerces-j/下载所需要的版本。
原创粉丝点击