org.springframework.beans.factory.xml.XmlBeanDefin

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 23 in XML document from ServletContext resource [/WEB-INF/config/spring/spring-servlet.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId: http://www.springframework.org/schema/mvc/spring-mvc.xsd; lineNumber: 23; columnNumber: 20; cos-all-limited.1.2: An ''all'' model group must appear in a particle with '{'min occurs'}'='{'max occurs'}'=1, and that particle must be part of a pair which constitutes the '{'content type'}' of a complex type definition.
	at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)

主要是这个解析错误:

查了很多资料并没有找到答案,我就猜想是不是tomcat本身的问题,就尝试用MyEclipse自带的tomcat启动,结果没有报错。这里肯定了,是我的tomcat出问题。

我比较我使用的tomcat和myEclipse里的tomcat,最终发现,我使用的tomcat里面多了三个jar包;移除这三个jar包,问题解决。

ojdbc14.jar;

log4j-1.2.17.jar;

xercesImpl-2.0.2.jar;

我猜想是xercesImpl-2.0.2.jar;导致的,具体原因,由于比较晚并没有深究,有空研究


你可能感兴趣的:(tomcat,'content,xercesImpl,type')