WARNING [localhost-startStop-1] org.apache.catalina.loa der.WebappClassLoaderBase.clearReferencesJdbc The web application...

tomcat8.x下放了两个项目,不知道为什么启动的时候第一个可以启动起来,第二个就总报错

30-Sep-2016 15:42:17.044 WARNING [localhost-startStop-1] org.apache.catalina.loa
der.WebappClassLoaderBase.clearReferencesJdbc The web application [xxx] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but faile
d to unregister it when the web application was stopped. To prevent a memory lea
k, the JDBC Driver has been forcibly unregistered.
30-Sep-2016 15:42:17.044 WARNING [localhost-startStop-1] org.apache.catalina.loa
der.WebappClassLoaderBase.clearReferencesJdbc The web application [xxx] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregiste
r it when the web application was stopped. To prevent a memory leak, the JDBC Dr
iver has been forcibly unregistered.


30-Sep-2016 15:49:40.242 WARNING [localhost-startStop-1] org.apache.catalina.loa
der.WebappClassLoaderBase.clearReferencesThreads The web application [xxx] appears to have started a thread named [Abandoned connection cleanup th
read] but has failed to stop it. This is very likely to create a memory leak. St
ack trace of thread:
 java.lang.Object.wait(Native Method)
 java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:143)
 com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupT
hread.java:43)

开始以为是第二个项目有问题,因为启动的时候第一个启动完了,再启动第二个的时候报的,所以开始一直以为是第二个项目数据库连接池有什么问题呢,一直在找第二个

本人的解决办法,网上查了很多都说的是把配置文件中的监听去掉,我都去了最后还是不行,其实只要看日志文件中的localhost.2015-10-27.log就能看到是什么问题了

最后发现原来是第一个项目中web.xml中有个参数配置有问题,修改之后两个项目就顺利都启动起来了

欢迎加入QQ群:104286694

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容