您的位置:首页 > 运维架构 > Tomcat

Spring集成xfire 启动tomcat报错

2012-08-07 17:15 603 查看
严重: 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>中的属性部分删掉,改为

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐