com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!

 

启动Tomcat报错误.

 

 

信息: Unsanitized stacktrace from failed start...

com.sun.faces.config.ConfigurationException: Factory 'javax.faces.context.ExceptionHandlerFactory' was not configured properly.

at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:305)

at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:219)

at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360)

at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)

at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)

at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

Caused by: javax.faces.FacesException: com.coscon.cbs.exceptionhandling.CustomJSFExceptionHandlerFactory

at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:606)

at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:485)

at javax.faces.FactoryFinder.access$400(FactoryFinder.java:141)

at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:886)

at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:319)

at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:303)

... 11 more

Caused by: java.lang.ClassNotFoundException: com.coscon.cbs.exceptionhandling.CustomJSFExceptionHandlerFactory

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:247)

at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:594)

... 16 more

2011-9-2 22:09:23 com.sun.faces.config.ConfigureListener contextInitialized

严重: Critical error during deployment: 

com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.coscon.cbs.exceptionhandling.CustomJSFExceptionHandlerFactory

at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:379)

at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)

at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)

at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

Caused by: java.lang.ClassNotFoundException: com.coscon.cbs.exceptionhandling.CustomJSFExceptionHandlerFactory

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:247)

at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:594)

at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:485)

at javax.faces.FactoryFinder.access$400(FactoryFinder.java:141)

at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:886)

at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:319)

at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:303)

at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:219)

at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360)

... 9 more

2011-9-2 22:09:23 org.apache.catalina.core.StandardContext listenerStart

严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener

java.lang.RuntimeException: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.coscon.cbs.exceptionhandling.CustomJSFExceptionHandlerFactory

at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)

at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)

at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

Caused by: com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! com.coscon.cbs.exceptionhandling.CustomJSFExceptionHandlerFactory

at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:379)

at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)

... 8 more

Caused by: java.lang.ClassNotFoundException: com.coscon.cbs.exceptionhandling.CustomJSFExceptionHandlerFactory

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)

at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:247)

at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:594)

at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:485)

at javax.faces.FactoryFinder.access$400(FactoryFinder.java:141)

at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:886)

at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:319)

at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:303)

at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:219)

at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:360)

... 9 more

2011-9-2 22:09:23 org.apache.catalina.core.StandardContext startInternal

严重: Error listenerStart

2011-9-2 22:09:23 org.apache.catalina.core.StandardContext startInternal

严重: Context [/cbsProject] startup failed due to previous errors

2011-9-2 22:09:23 com.sun.faces.config.ConfigureListener contextDestroyed

严重: Unexpected exception when attempting to tear down the Mojarra runtime

java.lang.IllegalStateException: 启动时没有正确初始化应用程序,无法找到工厂:javax.faces.application.ApplicationFactory

at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:894)

at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:319)

at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:112)

at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:325)

at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4763)

at org.apache.catalina.core.StandardContext$4.run(StandardContext.java:5472)

at java.lang.Thread.run(Thread.java:619)

2011-9-2 22:09:23 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc

严重: The web application [/cbsProject] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

2011-9-2 22:09:23 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc

严重: The web application [/cbsProject] registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

2011-9-2 22:09:23 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

严重: The web application [/cbsProject] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@159bb0c]) and a value of type [java.lang.Class] (value [class oracle.sql.TypeDescriptorFactory]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 

2011-9-2 22:09:23 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks

严重: The web application [/cbsProject] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@719ba]) and a value of type [java.lang.Class] (value [class oracle.sql.AnyDataFactory]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 

2011-9-2 22:09:23 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["http-bio-8090"]

2011-9-2 22:09:23 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["ajp-bio-8009"]

2011-9-2 22:09:23 org.apache.catalina.startup.Catalina start

你可能感兴趣的:(com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED!)