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)
開始以為是第二個項目有問題主胧,因為啟動的時候第一個啟動完了晦譬,再啟動第二個的時候報的疤苹,所以開始一直以為是第二個項目數據庫連接池有什么問題呢,一直在找第二個
本人的解決辦法敛腌,網上查了很多都說的是把配置文件中的監(jiān)聽去掉卧土,我都去了最后還是不行,其實只要看日志文件中的localhost.2015-10-27.log就能看到是什么問題了
最后發(fā)現(xiàn)原來是第一個項目中web.xml中有個參數配置有問題像樊,修改之后兩個項目就順利都啟動起來了
歡迎加入QQ群:104286694