当前位置: 安卓之星 -> Java开发 -> Exception starting filter FilterDispatcher Unable to load configuration. – [unknown location]

Exception starting filter FilterDispatcher Unable to load configuration. – [unknown location]

作者:网络 发表于: 2017-02-06 点击: 245 次

严重: Exception starting filter FilterDispatcher 
Unable to load configuration. – [unknown location] 
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360) 

at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403) 

……

……

Caused by: Caught exception while loading file struts-default.xml – [unknown location] 
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:894)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:144)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:164)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
… 30 more 
Caused by: java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration 
at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) 
……

这个是由于重复导入了xerces.jar包引起的,删除其中一个就OK了。

相关文章

相关文章

赶快留言冒泡

  • 评论 (0)
  • 引用通告 (0)
目前还没有任何评论.
目前还没有任何Trackbacks和Pingbacks.
吐个泡浮上去.