xml编码问题引发的错误
Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
com.sun.faces.config.ConfigurationException:CONFIGURATIONFAILED!org.apache.xerces.parsers.XIncludeAwareParserConfigurationcannotbecasttoorg.apache.xerces.xni.parser.XMLParserConfiguration
atcom.sun.faces.config.ConfigManager.initialize(ConfigManager.java:213)
atcom.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:196)
atorg.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3934)
atorg.apache.catalina.core.StandardContext.start(StandardContext.java:4429)
atorg.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
atorg.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
atorg.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
atorg.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
atorg.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
atorg.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
atorg.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
atorg.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
atorg.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
atorg.apache.catalina.core.StandardHost.start(StandardHost.java:722)
atorg.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
atorg.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
atorg.apache.catalina.core.StandardService.start(StandardService.java:516)
atorg.apache.catalina.core.StandardServer.start(StandardServer.java:710)
atorg.apache.catalina.startup.Catalina.start(Catalina.java:583)
atsun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
atjava.lang.reflect.Method.invoke(Method.java:597)
atorg.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
atorg.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Causedby:java.lang.ClassCastException:org.apache.xerces.parsers.XIncludeAwareParserConfigurationcannotbecasttoorg.apache.xerces.xni.parser.XMLParserConfiguration
atorg.apache.xerces.parsers.DOMParser.<init>(UnknownSource)
atorg.apache.xerces.parsers.DOMParser.<init>(UnknownSource)
atorg.apache.xerces.jaxp.DocumentBuilderImpl.<init>(UnknownSource)
atorg.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(UnknownSource)
atcom.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:69)
atcom.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler(TransletOutputHandlerFactory.java:187)
atcom.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler(TransformerImpl.java:392)
atcom.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:298)
atcom.sun.faces.config.ConfigManager$ParseTask.getDocument(ConfigManager.java:439)
atcom.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:394)
atcom.sun.faces.config.ConfigManager$ParseTask.call(ConfigManager.java:351)
atjava.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
atjava.util.concurrent.FutureTask.run(FutureTask.java:138)
atjava.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)同事找了半天,最后原来是xml编码有问题,晕死,记录一下。