Spring集成xfire 启动tomcat报错

来源:互联网 发布:最大熵模型 python 编辑:程序博客网 时间:2024/06/06 11:39

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanDefinitionStoreException: Line 15 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".

org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".

问题分析:此问题主要XFire Core lib 中有 Spring1.2.6 与 Spring 2 冲突!在 Spring 1.x xml定义使用DOCTYPE<beans>中不能有属性),而 Spring 2.x 是用schema

解决方法:<beans>中的属性部分删掉,改为


原创粉丝点击