近日TE网络因版本升级而导致很多BUG,我们会尽快让网站恢复稳定运行,非常抱歉给大家带来不便。
职业课程 > 员工信息系统 2 章、开发环境的整合搭建及log4j日志框架
客服QQ:1206116161
Crow

C3P0连接池导致不能部署的问题,没感觉配置错误

Crow 于 2018-03-25 22:05:30 发起求助
(190)
(3)
举报

三月 25, 2018 9:46:39 下午 org.apache.catalina.core.StandardServer await

信息: A valid shutdown command was received via the shutdown port. Stopping the Server instance.

三月 25, 2018 9:46:39 下午 org.apache.coyote.AbstractProtocol pause

信息: Pausing ProtocolHandler ["http-apr-8081"]

三月 25, 2018 9:46:39 下午 org.apache.coyote.AbstractProtocol pause

信息: Pausing ProtocolHandler ["ajp-apr-8010"]

三月 25, 2018 9:46:39 下午 org.apache.catalina.core.StandardService stopInternal

信息: Stopping service Catalina

三月 25, 2018 9:46:39 下午 org.apache.catalina.core.ApplicationContext log

信息: Closing Spring root WebApplicationContext

Closing Root WebApplicationContext: startup date [Sun Mar 25 21:44:49 CST 2018]; root of context hierarchy - [INFO] [2018-03-25 21:46:39:641] 

Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@37af8981: defining beans [mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,testDemoController,adminDao,adminServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,multipartResolver,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,sessionFactory,txManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy - [INFO] [2018-03-25 21:46:39:642] 

Closing Hibernate SessionFactory - [INFO] [2018-03-25 21:46:39:665] 

closing - [INFO] [2018-03-25 21:46:39:666] 

三月 25, 2018 9:46:39 下午 org.apache.catalina.core.ApplicationContext log

信息: Shutting down log4j

三月 25, 2018 9:46:39 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc

警告: The web application [engTrainExamSys] 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.

三月 25, 2018 9:46:39 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

警告: The web application [engTrainExamSys] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9upwzq21itpyvo|4ffb0140]-AdminTaskTimer] 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.util.TimerThread.mainLoop(Timer.java:552)

 java.util.TimerThread.run(Timer.java:505)

三月 25, 2018 9:46:39 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

警告: The web application [engTrainExamSys] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9upwzq21itpyvo|4ffb0140]-HelperThread-#0] 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)

 com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

三月 25, 2018 9:46:39 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

警告: The web application [engTrainExamSys] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9upwzq21itpyvo|4ffb0140]-HelperThread-#1] 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)

 com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

三月 25, 2018 9:46:39 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

警告: The web application [engTrainExamSys] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9upwzq21itpyvo|4ffb0140]-HelperThread-#2] 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)

 com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

三月 25, 2018 9:46:39 下午 org.apache.catalina.core.ApplicationContext log

信息: SessionListener: contextDestroyed()

三月 25, 2018 9:46:39 下午 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: contextDestroyed()

三月 25, 2018 9:46:39 下午 org.apache.coyote.AbstractProtocol stop

信息: Stopping ProtocolHandler ["http-apr-8081"]

三月 25, 2018 9:46:39 下午 org.apache.coyote.AbstractProtocol stop

信息: Stopping ProtocolHandler ["ajp-apr-8010"]

三月 25, 2018 9:46:39 下午 org.apache.coyote.AbstractProtocol destroy

信息: Destroying ProtocolHandler ["http-apr-8081"]

三月 25, 2018 9:46:39 下午 org.apache.coyote.AbstractProtocol destroy

信息: Destroying ProtocolHandler ["ajp-apr-8010"]


无法重新发布,删除tomcat路径下的部署项目也不行


百度查的是C3P0的问题,没找到确实解决办法


  • Crow
    Crow - 03月26日 (0)

    今天发现是用slf4j的时候,导致后面的修改都无法部署,每次启动server都是之前部署的东西




    三月 26, 2018 8:23:29 下午 org.apache.catalina.core.StandardServer await

    信息: A valid shutdown command was received via the shutdown port. Stopping the Server instance.

    三月 26, 2018 8:23:29 下午 org.apache.coyote.AbstractProtocol pause

    信息: Pausing ProtocolHandler ["http-apr-8081"]

    三月 26, 2018 8:23:29 下午 org.apache.coyote.AbstractProtocol pause

    信息: Pausing ProtocolHandler ["ajp-apr-8010"]

    三月 26, 2018 8:23:29 下午 org.apache.catalina.core.StandardService stopInternal

    信息: Stopping service Catalina

    三月 26, 2018 8:23:29 下午 org.apache.catalina.core.ApplicationContext log

    信息: Destroying Spring FrameworkServlet 'springmvc'

    Closing WebApplicationContext for namespace 'springmvc-servlet': startup date [Mon Mar 26 20:23:13 CST 2018]; parent: Root WebApplicationContext - [INFO] [2018-03-26 20:23:29,273] 

    Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@399d7684: defining beans [mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,testDemoController,adminDao,adminServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,multipartResolver,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,sessionFactory,txManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; parent: org.springframework.beans.factory.support.DefaultListableBeanFactory@79bb27b4 - [INFO] [2018-03-26 20:23:29,274] 

    Closing Hibernate SessionFactory - [INFO] [2018-03-26 20:23:29,298] 

    closing - [INFO] [2018-03-26 20:23:29,299] 

    三月 26, 2018 8:23:29 下午 org.apache.catalina.core.ApplicationContext log

    信息: Closing Spring root WebApplicationContext

    Closing Root WebApplicationContext: startup date [Mon Mar 26 20:22:56 CST 2018]; root of context hierarchy - [INFO] [2018-03-26 20:23:29,303] 

    Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@79bb27b4: defining beans [mvcContentNegotiationManager,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0,org.springframework.format.support.FormattingConversionServiceFactoryBean#0,org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0,org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#0,org.springframework.web.servlet.handler.MappedInterceptor#0,org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver#0,org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver#0,org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver#0,org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping,org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter,org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter,testDemoController,adminDao,adminServiceImpl,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,multipartResolver,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,sessionFactory,txManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy - [INFO] [2018-03-26 20:23:29,304] 

    Closing Hibernate SessionFactory - [INFO] [2018-03-26 20:23:29,304] 

    closing - [INFO] [2018-03-26 20:23:29,305] 

    三月 26, 2018 8:23:29 下午 org.apache.catalina.core.ApplicationContext log

    信息: Shutting down log4j

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc

    警告: The web application [engineering] 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.

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9ur9i9fh5uwk9h|10c0532d]-AdminTaskTimer] 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.util.TimerThread.mainLoop(Timer.java:552)

     java.util.TimerThread.run(Timer.java:505)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9ur9i9fh5uwk9h|10c0532d]-HelperThread-#0] 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)

     com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9ur9i9fh5uwk9h|10c0532d]-HelperThread-#1] 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)

     com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9ur9i9fh5uwk9h|10c0532d]-HelperThread-#2] 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)

     com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [Abandoned connection cleanup thread] 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.ref.ReferenceQueue.remove(ReferenceQueue.java:135)

     com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:43)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9ur9i9fh5uwk9h|4d51b5dc]-AdminTaskTimer] 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.util.TimerThread.mainLoop(Timer.java:552)

     java.util.TimerThread.run(Timer.java:505)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9ur9i9fh5uwk9h|4d51b5dc]-HelperThread-#0] 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)

     com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9ur9i9fh5uwk9h|4d51b5dc]-HelperThread-#1] 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)

     com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads

    警告: The web application [engineering] appears to have started a thread named [C3P0PooledConnectionPoolManager[identityToken->1b61a5h9ur9i9fh5uwk9h|4d51b5dc]-HelperThread-#2] 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)

     com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:683)

    三月 26, 2018 8:23:29 下午 org.apache.catalina.core.ApplicationContext log

    信息: SessionListener: contextDestroyed()

    三月 26, 2018 8:23:29 下午 org.apache.catalina.core.ApplicationContext log

    信息: ContextListener: contextDestroyed()

    三月 26, 2018 8:23:29 下午 org.apache.coyote.AbstractProtocol stop

    信息: Stopping ProtocolHandler ["http-apr-8081"]

    三月 26, 2018 8:23:29 下午 org.apache.coyote.AbstractProtocol stop

    信息: Stopping ProtocolHandler ["ajp-apr-8010"]

    三月 26, 2018 8:23:29 下午 org.apache.coyote.AbstractProtocol destroy

    信息: Destroying ProtocolHandler ["http-apr-8081"]

    三月 26, 2018 8:23:29 下午 org.apache.coyote.AbstractProtocol destroy

    信息: Destroying ProtocolHandler ["ajp-apr-8010"]


  • Crow
    Crow - 03月26日 (0)

    仍旧未解决,不知道是哪里没配置对

  • Crow
    Crow - 03月26日 (1)

    已经解决,解决办法是把

    slf4j-log4j12的jar包手动copy到tomcat下


    myeclipse没有把这个jar包也部署到服务器上


扫码关注TE官方微博 扫码关注TE官方微博
回复X
举报X