运行环境:MAC OS X 10.11.2
jdk 1.7
tomcat 8
从git导入后启动报错
一月 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 WebApplicationContext INFO - Root WebApplicationContext: initialization started INFO - Refreshing Root WebApplicationContext: startup date [Fri Jan 15 03:29:59 CST 2016]; root of context hierarchy INFO - 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 [dataSource,sessionFactory,access_token,accessTokenService,accessTokenDao]; root of factory hierarchy INFO - HCANN000001: Hibernate Commons Annotations {4.0.1.Final} INFO - HHH000412: Hibernate Core {4.1.4.Final} INFO - HHH000206: hibernate.properties not found INFO - HHH000021: Bytecode provider name : javassist WARN - HHH000342: Could not obtain connection to query metadata : Access denied for user 'root'@'localhost' (using password: YES) INFO - HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect INFO - HHH000422: Disabling contextual LOB creation as connection was null INFO - HHH000397: Using ASTQueryTranslatorFactory INFO - 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.ConfigureListener com.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 runtime java.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 WebApplicationContext log4j: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
jdk1.7 不是应该和 tomcat7用吗
换回tomcat7确实好了,这个工程最开始是用tomcat7搭建的,后来我还了tomcat8根jdk1.8就开始出错,是哪个包冲突了吗?版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。