项目启动的时候:Exception starting filter struts2
最近整个小项目,加上spring和hibernate,还有struts2.0。配好后启动服务器报如下错:
?
严重: 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)
??? at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
??? at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
??? at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
??? at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
??? at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
??? at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295)
??? at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422)
??? at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115)
??? at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3838)
??? at org.apache.catalina.core.StandardContext.start(StandardContext.java:4488)
??? at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
??? at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
??? at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)
??? at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)
??? at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)
??? at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
??? at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
??? at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
??? at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
??? at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
??? at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)
??? at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
??? at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
??? at org.apache.catalina.core.StandardService.start(StandardService.java:519)
??? at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
??? at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
??? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
??? at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
??? at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
??? at java.lang.reflect.Method.invoke(Unknown Source)
??? at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
??? at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
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)
??? at org.apache.xerces.parsers.DOMParser.<init>(Unknown Source)
??? at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
??? at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
??? at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument(Unknown Source)
??? at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(Unknown Source)
??? at com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(Unknown Source)
??? at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(Unknown Source)
??? at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult(Unknown Source)
??? at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:213)
??? at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:198)
??? at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:189)
??? at com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:175)
??? at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)
??? at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:830)
??? ... 34 more
2010-10-26 18:30:27 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2010-10-26 18:30:27 org.apache.catalina.core.StandardContext start
严重: Context [/manage_company] startup failed due to previous errors
2010-10-26 18:30:27 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2010-10-26 18:30:27 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-10-26 18:30:27 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
严重: A web application appears to have started a TimerThread named [MySQL Statement Cancellation Timer] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled.
?
哪儿的问题啊?各位看到的帮帮忙!