nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Yo

把局网站的后台Spring和Hibernate移植到我本机的新项目里:结果出现以下错误:

ERROR 2010-02-22 21:46:48 (JobManager.java:49) - Parser configuration exception parsing XML from class path resource [common/spring/conf/auto-transaction.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl@44f787] 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.


仔细查看到这么一句:Unable to validate using XSD: Your JAXP provider [org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@193a66f] 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 fll XSD support.

其中:DocumentBuilderFactoryImpl类是jdk1.5中rt.jar下的,后来又搜索了一下这个类也可能存在xerces.jar中,但是工程里没有这个jar文件啊^O^,又到tomcat下面的lib 目录下一看,有一个xerces.jar文件,可能是以前其他工程用到的。删之,搞定。哈哈

你可能感兴趣的:(java,apache,exception,Hibernate,nested,Parsing)