Struts2+Hibernate整合开发出现“严重: Exception starting filter struts2...”问题

可能是很长时间没有做J2EE开发了,最近用struts2+hibernate整合开发时,启动tomcat后提示出现错误,错误很严重:

以下为错误提示:

严重: Exception starting filter struts2
Unable to load configuration. - [unknown location]
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:431)
 at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
 at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
 at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.(DomHelper.java:167)
 at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:107)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:893)
 ... 22 more
2010-11-2 13:09:37 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2010-11-2 13:09:37 org.apache.catalina.core.StandardContext start
严重: Context [/Blog] startup failed due to previous errors
...
费尽了周折,查阅了资料,直觉以为是web.xml配置文件的错误,但是仔细检查没发现错误!我这个急啊!像热锅上的蚂蚁!
后来经高人指点,原来是开发工具里的类包不兼容的问题!!我当时是那个汉啊!!!!!无语的感觉!!

具体解决的办法如下:

 
  
将项目下的Hibernate类库中的xerces-2.6.2.jar文件删除或者在lib目录中删除,然后把服务器部署过的此项目也删掉,重新部署一下,重新启动服务器就OK了!!
我的新浪微博(wind瑞):http://weibo.com/tianrui1990



你可能感兴趣的:(Struts2+Hibernate整合开发出现“严重: Exception starting filter struts2...”问题)