最近做一个ssh的项目其中用到xml解析 于是导入xerces.jar包 运行出了一大串错误:
org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from class path resource [spring/applicationContext.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@125d06e] 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.
Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@125d06e] 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.
Caused by: java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
看了网上一个解释但是还是没有弄出来。网上说是jdk问题 本人从1.5试到1.7 任然报错。 然后本人删了xerces.jar弄了个新版本 运行无错误 但是在里面一个DOMParse类 没有setIncludeIgnorableWhitespace(boolean)方法 而本人写的方法中必须要用到它所以又报错误。 希望高手们伸出援助之手 看看
org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from class path resource [spring/applicationContext.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@125d06e] 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.
Caused by: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@125d06e] 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.
Caused by: java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
看了网上一个解释但是还是没有弄出来。网上说是jdk问题 本人从1.5试到1.7 任然报错。 然后本人删了xerces.jar弄了个新版本 运行无错误 但是在里面一个DOMParse类 没有setIncludeIgnorableWhitespace(boolean)方法 而本人写的方法中必须要用到它所以又报错误。 希望高手们伸出援助之手 看看