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文件,可能是以前其他工程用到的。删之,搞定。哈哈
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值