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>中的属性部分删掉,改为
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>中的属性部分删掉,改为
相关文章推荐
- spring和hibernate集成成功后,集成struts2的后,启动tomcat报错,求解
- eclipse启动tomcat报错: Error configuring application listener of class org.springframework.ContextLoader
- tomcat 启动spring报错 illegalargument
- spring 结合 proxool连接池 启动tomcat报错:Attempt to refer to a unregistered pool by its alias
- spring 结合 proxool连接池 启动tomcat报错:Attempt to refer to a unregistered pool by its alias
- Myeclipse8.5、集成Tomcat7启动项目报错 LogFactory
- spring:tomcat启动服务报错
- 在配置Shiro时,启动tomcat报错出现异常(org.springframework.beans.factory.BeanCreationException)
- jdk 1.8 与 spring+springmvc 3.2 .jar 启动tomcat报错
- Spring Boot (一) 基础搭建、兼容jar启动及war tomcat启动、集成Swagger2 API。
- spring + mybatis + atomikos 启动tomcat报错
- 用spring+struts2+hibernate开发的项目放到服务器上时由于服务器不能联网,启动tomcat报错。
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- Web Service框架XFire与Tomcat集成
- spring-boot设置内置启动的tomcat端口
- Tomcat启动后访问首页报错 显示JSP 空指针异常
- 用MyEclipse启动tomcat 报错Could not find the main class
- tomcat启动spring boot项目报错:java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
- spring+hibernate整合时tomcat启动的一个错误(严重: Exception sending context initialized event to listener instance of class org.springframewo
- spring boot项目启动,Tomcat报端口已被使用