我不能讓過去的這個問題。瀏覽了很多論壇。請幫助:提供了javax.xml.parsers.DocumentBuilderFactory中無法找到
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is javax.xml.parsers.FactoryConfigurationError: Provider for javax.xml.parsers.DocumentBuilderFactory cannot be found.
我已經包含在Xerces的bin中的所有jar文件。 以下是我的WEB-INF/lib目錄結構:
[可能重複](http://stackoverflow.com/questions/15526419/unexpected-exception-parsing-xml-document-from-servletcontext-resource-web-inf) – gks
我不確定,但看起來像實施DocumentFactoryBuilder的是沒有發現即使添加了JAR文件後 – Saket
然後用不同的罐子嘗試從[這裏](http://www.findjar.com/class/javax/xml/parsers/DocumentBuilderFactory.html)[用法](HTTP: //grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/javax/xml/parsers/DocumentBuilderFactory.java)[更多信息](HTTP://www.developerfusion。com/code/2064/a-simple-way-to-read -a-xml-file-in-java /) – gks