启动错误笔记:DruidDriver] but failed to unregister it when the web application was stopped,To prevent a me...

严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
五月 30, 2019 2:26:21 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/intelcommunity-web] startup failed due to previous errors
2019-05-30 14:26:23.019 [LEVEL:INFO ] Scheduler JMSpringScheduler_$_DESKTOP-JUB6URM1559197576526 shutting down.
2019-05-30 14:26:23.019 [LEVEL:INFO ] Scheduler JMSpringScheduler_$_DESKTOP-JUB6URM1559197576526 paused.
2019-05-30 14:26:23.019 [LEVEL:INFO ] Scheduler JMSpringScheduler_$_DESKTOP-JUB6URM1559197576526 shutdown complete.
2019-05-30 14:26:23.023 [LEVEL:INFO ] atomikos connection pool 'system': destroying pool...
2019-05-30 14:26:23.026 [LEVEL:INFO ] atomikos connection pool 'com': destroying pool...
2019-05-30 14:26:23.027 [LEVEL:INFO ] [com.jimi.jmspring.core.tool.jtads.JMJTADS] close 动态JTA数据库连接池资源释放完成!
五月 30, 2019 2:26:23 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: The web application [/intelcommunity-web] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
五月 30, 2019 2:26:23 下午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: The web application [/intelcommunity-web] 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.
[2019-05-30 02:26:23,057] Artifact intelcommunity-web:war exploded: Error during artifact deployment. See server log for details.
五月 30, 2019 2:26:26 下午 org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
信息: Illegal access: this web application instance has been stopped already. Could not load . The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
五月 30, 2019 2:26:46 下午 org.apache.catalina.loader.WebappClassLoaderBase loadClass
信息: Illegal access: this web application instance has been stopped already. Could not load org.apache.commons.pool2.impl.EvictionConfig. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1777)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
at org.apache.commons.pool2.impl.GenericObjectPool.evict(GenericObjectPool.java:743)
at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1036)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)

Exception in thread "commons-pool-EvictionTimer" java.lang.NoClassDefFoundError: org/apache/commons/pool2/impl/EvictionConfig
at org.apache.commons.pool2.impl.GenericObjectPool.evict(GenericObjectPool.java:743)
at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1036)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.EvictionConfig
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
... 4 more

 

 

如上这种错误  如果平时能运行得项目出现了,  要检查一下web.xml监听器 看是否有无效监听器,

如果是idea    别只盯着Service   注意看 Tomcat localhost Log,搜索监听器得类  应该就能找到结果

 

转载于:https://www.cnblogs.com/kongji/p/10950045.html

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 这段文字是报错信息,大意为已经注册了jdbc驱动程序(com.alibaba.druid.proxy.druiddriver),但在web应用程序停止时无法注销它。为了防止内存泄漏,jdbc驱动程序已被强制取消注册。 ### 回答2: JDBC是Java Database Connectivity的缩写,它是Java编程语言中用于与关系型数据库建立连接的一套API。使用JDBC需要通过注册驱动程序来实现数据库的连接,例如com.mysql.jdbc.Driver。 在Web应用程序中,我们通常需要使用数据库来存储数据,因此需要注册JDBC驱动程序。当Web应用程序停止运行时,需要注销已注册的JDBC驱动程序,以防止内存泄漏,这是非常重要的一步。 然而,在某些情况下,注销已注册的JDBC驱动程序可能会遇到问题。如果我们使用的是com.alibaba.druid.proxy.DruidDriver,当Web应用程序停止时,无法注销该驱动程序。 为了避免内存泄漏,JDBC驱动程序被强制取消注册。这意味着在下一次需要使用该驱动程序时,需要重新注册它。因此,在使用JDBC驱动程序时,我们需要特别注意其注册和注销的方法,以避免潜在的内存泄漏问题。 总之,在Web应用程序中使用JDBC驱动程序是一个非常重要的过程。我们需要正确地注册和注销驱动程序,以确保应用程序的稳定性和安全性。否则,不仅会导致内存泄漏问题,还可能会在应用程序运行过程中发生不可预测的错误。 ### 回答3: JDBC驱动程序的注册和注销是非常重要的操作。注册驱动程序时,需要提供正确的驱动程序类名,否则将无法正确加载驱动程序,从而无法正常使用数据库连接。在Web应用程序启动时,通常会注册所有需要使用的数据库驱动程序,这样在应用程序运行过程中就可以随时获取数据库连接,以执行相关的操作。 然而,当Web应用程序停止时,需要对已注册的JDBC驱动程序进行注销操作。否则,这些驱动程序可能会在内存中持续存在,导致内存泄漏,影响应用程序的性能和稳定性。为避免这种情况的发生,JDBC驱动程序应该在应用程序停止时被正确注销。 如果在Web应用程序停止时,无法正确注销JDBC驱动程序,那么可能会出现内存泄漏的情况。这时,需要强制取消注册JDBC驱动程序,以释放内存资源。强制取消注册驱动程序的方法是,调用DriverManager.deregisterDriver()函数,将注册的驱动程序从驱动程序管理器中删除。 总之,为了避免内存泄漏和提高应用程序的性能,必须正确注册和注销JDBC驱动程序。如果出现无法注销的情况,可以通过强制取消注册的方式,释放内存资源。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值