严重: 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>中的属性部分删掉,改为