Spring難病-XML配置(1)-Unable to validate using XSD
質問:
Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@18aaa1e] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces(or Java 1.5)for full XSD support環境JDK 1.4 spring 2.0.6
解決策:
新しいバージョンのxerces 2.9をダウンロードしました
異常完全情報:
Jan 22, 2008 11:07:44 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@1f9dc36: display name [org.springframework.context.support.ClassPathXmlApplicationContext@1f9dc36]; startup date [Tue Jan 22 11:07:44 CST 2008]; root of context hierarchy
Jan 22, 2008 11:07:44 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [es6message/fixlength/ism12_fixlength.xml]
org.springframework.beans.factory.BeanDefinitionStoreException
Caused by:
at org.springframework.beans.factory.xml.DefaultDocumentLoader.createDocumentBuilderFactory(
at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(
at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(
at org.springframework.context.support.AbstractApplicationContext.refresh(
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(
at com.hsbc.pfs.gbl.message.ES6FixMessageTest.main(
: Parser configuration exception parsing XML from class path resource [es6message/fixlength/ism12_fixlength.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@18aaa1e] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@18aaa1e] does not support XML Schema. Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD support.DefaultDocumentLoader.java:101)DefaultDocumentLoader.java:70)XmlBeanDefinitionReader.java:351)XmlBeanDefinitionReader.java:303)XmlBeanDefinitionReader.java:280)AbstractBeanDefinitionReader.java:131)AbstractBeanDefinitionReader.java:147)AbstractBeanDefinitionReader.java:173)AbstractXmlApplicationContext.java:112)AbstractXmlApplicationContext.java:79)AbstractRefreshableApplicationContext.java:101)AbstractApplicationContext.java:389)AbstractApplicationContext.java:324)ClassPathXmlApplicationContext.java:91)ClassPathXmlApplicationContext.java:75)ES6FixMessageTest.java:48)