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)

主要是这个解析错误:
java

查了不少资料并无找到答案,我就猜测是否是tomcat自己的问题,就尝试用MyEclipse自带的tomcat启动,结果没有报错。这里确定了,是个人tomcat出问题。spring

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

ojdbc14.jar;tomcat

log4j-1.2.17.jar;mvc

xercesImpl-2.0.2.jar;app

我猜测是xercesImpl-2.0.2.jar;致使的,具体缘由,因为比较晚并无深究,有空研究spa

相关文章
相关标签/搜索
本站公众号
   欢迎关注本站公众号,获取更多信息