2013-08-25 40 views
0

在我的Java程序中,我创建了一个使用XOM读取XML文件的类。我也在使用Spring。当行: ApplicationContext ctx = new ClassPathXmlApplicationContext("dataIO-beans.xml");执行,我得到它包括一个异常: javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [[email protected]] 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. 如果我从Eclipse项目的构建路径中删除DTD-xercesImpl.jar,春季成功读取XML文件中的豆,但现在我的XML阅读课不起作用,因为XOM需要那个jar文件。我该如何解决这个问题?Spring与XOM之间的冲突

回答