网上找了好久,连接数据库的jar也放上去了,还是有错误。以下是tomcat全部日志:
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version:        Apache Tomcat/7.0.69
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built:          Apr 11 2016 07:57:09 UTC
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number:         7.0.69.0
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name:               Linux
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version:            2.6.32-279.el6.x86_64
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture:          amd64
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home:             /tarivon/jdk/jre
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version:           1.7.0_09-b05
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor:            Oracle Corporation
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE:         /tarivon/tomcat
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME:         /tarivon/tomcat
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.config.file=/tarivon/tomcat/conf/logging.properties
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djdk.tls.ephemeralDHKeySize=2048
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=/tarivon/tomcat/endorsed
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=/tarivon/tomcat
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=/tarivon/tomcat
May 24, 2016 6:38:18 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.io.tmpdir=/tarivon/tomcat/temp
May 24, 2016 6:38:18 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
May 24, 2016 6:38:18 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
May 24, 2016 6:38:19 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
May 24, 2016 6:38:19 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1324 ms
May 24, 2016 6:38:19 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
May 24, 2016 6:38:19 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.69
May 24, 2016 6:38:19 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /tarivon/tomcat/webapps/risk.war
May 24, 2016 6:38:25 PM org.apache.catalina.startup.TldConfig execute
INFO: 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.
2016-05-24 18:38:30 WARN org.hibernate.mapping.RootClass.checkCompositeIdentifier | composite-id class does not override equals(): com.tarivon.rights.entity.RightsNode
2016-05-24 18:38:30 WARN org.hibernate.mapping.RootClass.checkCompositeIdentifier | composite-id class does not override hashCode(): com.tarivon.rights.entity.RightsNode
2016-05-24 18:38:30 WARN org.hibernate.mapping.RootClass.checkCompositeIdentifier | composite-id class does not override equals(): com.tarivon.rights.entity.RightsRiskPoint
2016-05-24 18:38:30 WARN org.hibernate.mapping.RootClass.checkCompositeIdentifier | composite-id class does not override hashCode(): com.tarivon.rights.entity.RightsRiskPoint
firewall#class com.soofound.syslog.plugin.FirewallSyslogPlugin
generic#class com.soofound.syslog.plugin.GenericSyslogPlugin
windows#class com.soofound.syslog.plugin.WindowsSyslogPlugin
----------------- thread name: TN - Collector#504-1
----------------- thread name: TN - Collector#504-2
----------------- thread name: TN - Collector#504-3
----------------- thread name: TN - Collector#504-4
----------------- thread name: TN - Collector#504-5
----------------- thread name: TN - Collector#514-1
----------------- thread name: TN - Collector#514-2
----------------- thread name: TN - Collector#514-3
----------------- thread name: TN - Collector#514-4
----------------- thread name: TN - Collector#514-5
----------------- thread name: TN - Collector#555-1
----------------- thread name: TN - Collector#555-2
----------------- thread name: TN - Collector#555-3
----------------- thread name: TN - Collector#555-4
----------------- thread name: TN - Collector#555-5
----------------- thread name: TN - Collector#556-1
----------------- thread name: TN - Collector#556-2
----------------- thread name: TN - Collector#556-3
----------------- thread name: TN - Collector#556-4
----------------- thread name: TN - Collector#556-5

解决方案 »

  1.   

    2016-05-24 18:38:39 WARN org.springframework.security.access.intercept.AbstractSecurityInterceptor.afterPropertiesSet | Could not validate configuration attributes as the SecurityMetadataSource did not return any attributes from getAllConfigAttributes()
    May 24, 2016 6:38:40 PM org.apache.catalina.core.StandardContext startInternal
    SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file
    May 24, 2016 6:38:40 PM org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/risk] startup failed due to previous errors
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#504-1] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#504-2] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#504-3] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#504-4] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#504-5] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#514-1] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#514-2] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#514-3] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#514-4] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#514-5] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [Thread-14] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#555-1] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#555-2] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#555-3] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#555-4] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#555-5] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [Thread-20] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#556-1] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#556-2] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#556-3] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#556-4] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [TN - Collector#556-5] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [Thread-26] but has failed to stop it. This is very likely to create a memory leak.
      

  2.   

    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [nioEventLoopGroup-3-1] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [nioEventLoopGroup-5-1] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [nioEventLoopGroup-2-1] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/risk] appears to have started a thread named [nioEventLoopGroup-4-1] but has failed to stop it. This is very likely to create a memory leak.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SEVERE: The web application [/risk] created a ThreadLocal with key of type [io.netty.util.internal.ThreadLocalRandom$2] (value [io.netty.util.internal.ThreadLocalRandom$2@3969e244]) and a value of type [io.netty.util.internal.ThreadLocalRandom] (value [io.netty.util.internal.ThreadLocalRandom@5685fbce]) 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.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SEVERE: The web application [/risk] created a ThreadLocal with key of type [io.netty.util.Recycler$1] (value [io.netty.util.Recycler$1@7656bdc2]) and a value of type [io.netty.util.Recycler.Stack] (value [io.netty.util.Recycler$Stack@38c44840]) 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.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SEVERE: The web application [/risk] created a ThreadLocal with key of type [io.netty.util.internal.ThreadLocalRandom$2] (value [io.netty.util.internal.ThreadLocalRandom$2@3969e244]) and a value of type [io.netty.util.internal.ThreadLocalRandom] (value [io.netty.util.internal.ThreadLocalRandom@4f90e9b7]) 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.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SEVERE: The web application [/risk] created a ThreadLocal with key of type [io.netty.util.Recycler$1] (value [io.netty.util.Recycler$1@7656bdc2]) and a value of type [io.netty.util.Recycler.Stack] (value [io.netty.util.Recycler$Stack@32e01630]) 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.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SEVERE: The web application [/risk] created a ThreadLocal with key of type [io.netty.util.internal.ThreadLocalRandom$2] (value [io.netty.util.internal.ThreadLocalRandom$2@3969e244]) and a value of type [io.netty.util.internal.ThreadLocalRandom] (value [io.netty.util.internal.ThreadLocalRandom@15d0c368]) 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.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SEVERE: The web application [/risk] created a ThreadLocal with key of type [io.netty.util.Recycler$1] (value [io.netty.util.Recycler$1@7656bdc2]) and a value of type [io.netty.util.Recycler.Stack] (value [io.netty.util.Recycler$Stack@3cccec08]) 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.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SEVERE: The web application [/risk] created a ThreadLocal with key of type [io.netty.util.internal.ThreadLocalRandom$2] (value [io.netty.util.internal.ThreadLocalRandom$2@3969e244]) and a value of type [io.netty.util.internal.ThreadLocalRandom] (value [io.netty.util.internal.ThreadLocalRandom@319c2067]) 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.
    May 24, 2016 6:38:40 PM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks
    SEVERE: The web application [/risk] created a ThreadLocal with key of type [io.netty.util.Recycler$1] (value [io.netty.util.Recycler$1@7656bdc2]) and a value of type [io.netty.util.Recycler.Stack] (value [io.netty.util.Recycler$Stack@11363a3]) 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.
    May 24, 2016 6:38:40 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deployment of web application archive /tarivon/tomcat/webapps/risk.war has finished in 21,519 ms
    May 24, 2016 6:38:40 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /tarivon/tomcat/webapps/examples
    May 24, 2016 6:38:41 PM org.apache.catalina.startup.TldConfig execute
    INFO: 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.
    May 24, 2016 6:38:41 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory /tarivon/tomcat/webapps/examples has finished in 1,028 ms
    May 24, 2016 6:38:41 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /tarivon/tomcat/webapps/host-manager
    May 24, 2016 6:38:41 PM org.apache.catalina.startup.TldConfig execute
    INFO: 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.
    May 24, 2016 6:38:41 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory /tarivon/tomcat/webapps/host-manager has finished in 242 ms
    May 24, 2016 6:38:41 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /tarivon/tomcat/webapps/manager
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.TldConfig execute
    INFO: 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.
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory /tarivon/tomcat/webapps/manager has finished in 268 ms
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /tarivon/tomcat/webapps/docs
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.TldConfig execute
    INFO: 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.
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory /tarivon/tomcat/webapps/docs has finished in 233 ms
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory /tarivon/tomcat/webapps/ROOT
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.TldConfig execute
    INFO: 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.
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deployment of web application directory /tarivon/tomcat/webapps/ROOT has finished in 212 ms
    May 24, 2016 6:38:42 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    May 24, 2016 6:38:42 PM org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    May 24, 2016 6:38:42 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 23674 ms
      

  3.   

    看报错信息好像是你的运行环境有问题啊!
    你先测试一下你的linux下的JDK和tomcat环境是否正常看看。
      

  4.   

    如果不把项目部署上去 tomcat是可以正常起来的
      

  5.   

    我之前遇到过相似的问题,不知道是否对你的症
    我最后的问题出在jdk的配置上面,Windows上面jdk版本是1.8,
    部署到linux系统上是jdk1.7
    后来对项目里面的三处位置的jdk版本进行了修改,就正常了.  下面附图是修改JDK的三处位置,希望能帮到你