前一阵子在开发一个Struts2的原型SCM项目, 用Struts 2+Hibernate开发. 再次遇到了 Struts 2+JDK 6的冲突问题.
出错信息: Illegal access: this web application instance has been stopped already. Could not load org.xml.sax.SAXException. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1244)
at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1204)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder (Unknown Source)
at com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init> (SAX2DOM.java:69)
at com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputH andlerFactory.getSerializationHandler (TransletOutputHandlerFactory.java:187)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutput Handler(TransformerImpl.java:392)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.se tResult(TransformerHandlerImpl.java:137)
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.load ConfigurationFiles(XmlConfigurationProvider.java:830)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.load Documents(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:275)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (ApplicationFilterConfig.java:397)
at org.apache.catalina.core.ApplicationFilterConfig.<init> (ApplicationFilterConfig.java:108)