javaWeb项目在windows下运行正常,linux下启动不成功,报以下错误

longsq602 2016-05-25 09:23:16
网上找了很多文档,都没有解决,连接数据库的jar是放上去了。环境是 linux,tomcat 7,jdk1.7,postgresql 9.5。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
...全文
845 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
kissforliuwei 2016-12-14
  • 打赏
  • 举报
回复
这是类加载器内存泄露的一个问题,具体可以看这里: http://stackoverflow.com/questions/7788280/memory-leak-when-redeploying-application-in-tomcat 你可以利用JProfile这一类的工具或者用jhat导出类情况分析。分析下当前哪里存在引用导致的泄露,再更改相应的代码,解决这类问题。祝你好运!
会飞的毛毛虫 2016-05-25
  • 打赏
  • 举报
回复
你怎么不把代码贴出来
会飞的毛毛虫 2016-05-25
  • 打赏
  • 举报
回复
http://zhidao.baidu.com/link?url=nWm6WcVtvEC6qnX1Xlbp0XkUVj-VmQXV1aLDqNtzC3MezaBp3J-fq9wprTefWSU9p4WLIDFlkdEKmRqHi-aPWK
longsq602 2016-05-25
  • 打赏
  • 举报
回复
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
longsq602 2016-05-25
  • 打赏
  • 举报
回复
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. 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.

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧