Caught exception while loading file struts-default.xml 错误
2013-11-11 19:12
423 查看
严重: Exception starting filter struts2
Caught exception while loading file struts-default.xml - [unknown location]at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:839)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:131)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:100)
……………………………………
现象: 第一次能运行, reload就不行.
试了Struts2自带的blank包, 没问题.
那基本可断定是其他jar包有冲突, 应该是XML解析包有冲突.
检查发布后的WEB-INF/lib有两个XML解析包: xml-apis.jar和xerces-2.6.2.jar
这种错误真正原因不是JDK 6和Struts 2冲突, 而是 MyEclipse Hibernate 类库中多了两个包: xml-apis.jar和xerces-2.6.2.jar, 这两个包的功能和JDK的冲突了. 解决办法: 1. 删除发布后目录的 WEB-INF/lib/ 下的这两个文件; 2. 或者使用JDK 1.5来启动Tomcat 6.
相关文章推荐
- Caught exception while loading file struts-default.xml 错误
- Caught exception while loading file struts-default.xml 错误
- Caught exception while loading file struts-default.xml 错误
- Caught exception while loading file struts-default.xml 的错误
- struts2 Caught exception while loading file struts-default.xml 的错误
- ssh 严重: Exception starting filter struts2 Caught exception while loading file struts-default.xml -
- Caught exception while loading file struts-default.xml - [unknown location
- Caught exception while loading file struts-default.xml - [unknown location]
- Caused by: Caught exception while loading file struts-default.xml - [unknown location]
- Caught exception while loading file struts-default.xml - [unknown location]
- Caught exception while loading file struts-default.xml - [unknown ]
- Caught exception while loading file struts-default.xml
- Caught exception while loading file struts-default.xml - [unknown location]
- Caught exception while loading file struts-default.xml
- Caught exception while loading file struts-default.xml
- Caught exception while loading file struts-default.xml - [unknown location]解决办法
- Exception starting filter struts2 Caught exception while loading file struts-default.xml - [unknown location]
- Caught exception while loading file struts-default.xml
- 异常 Caught exception while loading file struts-default.xml - [unknown location]
- Caught exception while loading file struts-default.xml