Exception starting filter struts2 Caught exception while loading file struts-default.xml - [unknown location]
Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration
解决方法:
a. 先把MyEclipse Hibernate 3.2 Core Lib从BuildPath去掉;
b. 不要重新发布应用, 从发布后的目录复制全部的jar文件到开发工具下项目的WEB-INF\lib目录下, 不要复制其中的xml-apis.jar和xerces-2.6.2.jar.
c. 停止Tomcat, 重新发布应用或者删除发布后的目录下的WEB-INF\lib下的xml-apis.jar和xerces-2.6.2.jar.
本文详细介绍了如何解决在使用Struts2框架时遇到的启动异常问题,包括移除特定依赖库、复制jar文件以及重启Tomcat等步骤。
1158

被折叠的 条评论
为什么被折叠?



