美文网首页
WARNING [localhost-startStop-1]

WARNING [localhost-startStop-1]

作者: 丸_子 | 来源:发表于2016-09-30 16:30 被阅读7582次

    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

    相关文章

      网友评论

          本文标题:WARNING [localhost-startStop-1]

          本文链接:https://www.haomeiwen.com/subject/phxryttx.html