错误显示:
信息: XML validation disabled
(2 ms) [main] ERROR: org.springframework.web.context.ContextLoader#initWebApplicationContext : Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Parser configuration exception parsing XML from class path resource [applicationContext.xml]; nested exception is javax.xml.parsers.ParserConfigurationException: Unable to validate using XSD: Your JAXP provider [gnu.xml.dom.JAXPFactory@7976c1] 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.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:377)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions。。。。。
解决方法:
1. gnujaxp.jar 去掉,gnujaxp.jar 和Spring里面的有些包有冲突,
2. 如果为了引入jfreechart,加入了serlvet.jar,需要先比对下tomcat里lib下的公共包,如果tomcat有,则无需引入。