问题描述
- 报错javax.faces.context.ExceptionHandlerFactory 5C
- 报错如下,工程在别的电脑上写的没问题,回家往mac里导就起不来了,百度了这些错误也没找到好的解决方法,发出来大家帮忙看看,勿喷。。。
一月 15 2016 3:29:55 上午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Brawow' did not find a matching property.一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Server version: Apache Tomcat/8.0.26一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Server built: Aug 18 2015 11:38:37 UTC一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Server number: 8.0.26.0一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: OS Name: Mac OS X一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: OS Version: 10.11.2一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Architecture: x86_64一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Java Home: /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: JVM Version: 1.7.0_79-b15一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: JVM Vendor: Oracle Corporation一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: CATALINA_BASE: /Users/lixiang/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: CATALINA_HOME: /Applications/apache-tomcat-8.0.26一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Dcatalina.base=/Users/lixiang/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Dcatalina.home=/Applications/apache-tomcat-8.0.26一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Dwtp.deploy=/Users/lixiang/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Djava.endorsed.dirs=/Applications/apache-tomcat-8.0.26/endorsed一月 15 2016 3:29:55 上午 org.apache.catalina.startup.VersionLoggerListener log信息: Command line argument: -Dfile.encoding=UTF-8一月 15 2016 3:29:55 上午 org.apache.catalina.core.AprLifecycleListener lifecycleEvent信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /Users/lixiang/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.一月 15 2016 3:29:55 上午 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler [""http-nio-8080""]一月 15 2016 3:29:55 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector信息: Using a shared selector for servlet write/read一月 15 2016 3:29:55 上午 org.apache.coyote.AbstractProtocol init信息: Initializing ProtocolHandler [""ajp-nio-8009""]一月 15 2016 3:29:55 上午 org.apache.tomcat.util.net.NioSelectorPool getSharedSelector信息: Using a shared selector for servlet write/read一月 15 2016 3:29:55 上午 org.apache.catalina.startup.Catalina load信息: Initialization processed in 744 ms一月 15 2016 3:29:55 上午 org.apache.catalina.core.StandardService startInternal信息: Starting service Catalina一月 15 2016 3:29:55 上午 org.apache.catalina.core.StandardEngine startInternal信息: Starting Servlet Engine: Apache Tomcat/8.0.26一月 15 2016 3:29:59 上午 org.apache.jasper.servlet.TldScanner scanJars信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.一月 15 2016 3:29:59 上午 org.apache.catalina.core.ApplicationContext log信息: No Spring WebApplicationInitializer types detected on classpath一月 15 2016 3:29:59 上午 org.apache.catalina.core.ApplicationContext log信息: Initializing Spring root WebApplicationContextINFO - Root WebApplicationContext: initialization startedINFO - Refreshing Root WebApplicationContext: startup date [Fri Jan 15 03:29:59 CST 2016]; root of context hierarchyINFO - Loading XML bean definitions from ServletContext resource [/WEB-INF/classes/applicationContext.xml]INFO - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@7c0c89: defining beans [dataSourcesessionFactoryaccess_tokenaccessTokenServiceaccessTokenDao]; root of factory hierarchyINFO - HCANN000001: Hibernate Commons Annotations {4.0.1.Final}INFO - HHH000412: Hibernate Core {4.1.4.Final}INFO - HHH000206: hibernate.properties not foundINFO - HHH000021: Bytecode provider name : javassistWARN - HHH000342: Could not obtain connection to query metadata : Access denied for user 'root'@'localhost' (using password: YES)INFO - HHH000400: Using dialect: org.hibernate.dialect.MySQLDialectINFO - HHH000422: Disabling contextual LOB creation as connection was nullINFO - HHH000397: Using ASTQueryTranslatorFactoryINFO - HHH000399: Using default transaction strategy (direct JDBC transactions)INFO - Root WebApplicationContext: initialization completed in 1262 ms一月 15 2016 3:30:00 上午 org.apache.catalina.core.ApplicationContext log信息: Set web app root system property: 'webapp.root' = [/Users/lixiang/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Brawow/]一月 15 2016 3:30:00 上午 org.apache.catalina.core.ApplicationContext log信息: Initializing log4j from [/Users/lixiang/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Brawow/WEB-INF/classes/log4j.properties]一月 15 2016 3:30:00 上午 com.sun.faces.config.ConfigureListener contextInitialized信息: 初始化上下文 '/Brawow' 的 Mojarra 2.0.3 (FCS b03)一月 15 2016 3:30:01 上午 com.sun.faces.config.ConfigManager initialize信息: Unsanitized stacktrace from failed start...java.lang.IllegalArgumentException: javax.faces.context.ExceptionHandlerFactory at javax.faces.FactoryFinder.validateFactoryName(FactoryFinder.java:650) at javax.faces.FactoryFinder.setFactory(FactoryFinder.java:295) at com.sun.faces.config.processor.FactoryConfigProcessor.setFactory(FactoryConfigProcessor.java:279) at com.sun.faces.config.processor.FactoryConfigProcessor.processFactories(FactoryConfigProcessor.java:235) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:189) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)一月 15 2016 3:30:01 上午 org.apache.catalina.core.StandardContext listenerStart严重: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListenercom.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! javax.faces.context.ExceptionHandlerFactory at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:351) at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:220) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.IllegalArgumentException: javax.faces.context.ExceptionHandlerFactory at javax.faces.FactoryFinder.validateFactoryName(FactoryFinder.java:650) at javax.faces.FactoryFinder.setFactory(FactoryFinder.java:295) at com.sun.faces.config.processor.FactoryConfigProcessor.setFactory(FactoryConfigProcessor.java:279) at com.sun.faces.config.processor.FactoryConfigProcessor.processFactories(FactoryConfigProcessor.java:235) at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:189) at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:332) ... 10 more一月 15 2016 3:30:01 上午 org.apache.catalina.core.StandardContext startInternal严重: One or more listeners failed to start. Full details will be found in the appropriate container log file一月 15 2016 3:30:01 上午 org.apache.catalina.core.StandardContext startInternal严重: Context [/Brawow] startup failed due to previous errors一月 15 2016 3:30:01 上午 com.sun.faces.config.ConfigureListener contextDestroyed严重: Unexpected exception when attempting to tear down the Mojarra runtimejava.lang.IllegalStateException: 启动时没有正确初始化应用程序,无法找到工厂:javax.faces.application.ApplicationFactory at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:263) at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:104) at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:312) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4774) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5390) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)一月 15 2016 3:30:01 上午 org.apache.catalina.core.ApplicationContext log信息: Shutting down log4j一月 15 2016 3:30:01 上午 org.apache.catalina.core.ApplicationContext log信息: Closing Spring root WebApplicationContextlog4j:WARN No appenders could be found for logger (org.springframework.web.context.support.XmlWebApplicationContext).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.一月 15 2016 3:30:01 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc警告: The web application [Brawow] registered the JDBC 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.一月 15 2016 3:30:01 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads警告: The web application [Brawow] appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Thread.sleep(Native Method) org.logicalcobwebs.proxool.HouseKeeperThread.run(HouseKeeperThread.java:46)一月 15 2016 3:30:01 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads警告: The web application [Brawow] appears to have started a thread named [Prototyper] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) java.lang.Object.wait(Object.java:503) org.logicalcobwebs.proxool.PrototyperThread.doWait(PrototyperThread.java:69) org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:58)一月 15 2016 3:30:01 上午 org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks严重: The web application [Brawow] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@6ca75f0c]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) 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.一月 15 2016 3:30:01 上午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler [""http-nio-8080""]一月 15 2016 3:30:01 上午 org.apache.coyote.AbstractProtocol start信息: Starting ProtocolHandler [""ajp-nio-8009""]一月 15 2016 3:30:01 上午 org.apache.catalina.startup.Catalina start信息: Server startup in 5448 ms
解决方案
javax.faces.context Class PartialResponseWriter
时间: 2024-12-03 10:30:00