溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

tomcat站點(diǎn)啟動失敗

發(fā)布時間:2020-07-01 08:33:03 來源:網(wǎng)絡(luò) 閱讀:1287 作者:ly_bing 欄目:開發(fā)技術(shù)

首先檢查:catalina.[date].log


錯誤信息:

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

四月 09, 2018 8:16:33 上午 org.apache.catalina.core.StandardContext startInternal

嚴(yán)重: One or more listeners failed to start. Full details will be found in the appropriate container log file

四月 09, 2018 8:16:33 上午 org.apache.catalina.core.StandardContext startInternal

嚴(yán)重: Context [/xxx] startup failed due to previous errors

四月 09, 2018 8:16:34 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc

嚴(yán)重: The web application [/heychain] 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.

四月 09, 2018 8:16:34 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc


到具體站點(diǎn)的log目錄中,找到當(dāng)前的log文件,發(fā)現(xiàn)錯誤信息:

2018-04-09 08:16:33,788 [localhost-startStop-1] ERROR [com.alibaba.druid.pool.DruidDataSource] - init datasource error, url: jdbc:mysql://localhost:3306/xxx?useUnicode=true&characterEncoding=utf-8&useSSL=false
java.sql.SQLException: Access denied for user 'xxx'@'localhost' (using password: YES)
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1084)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4232)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4164)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:926)
	at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1748)
	at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1288)
	at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2506)
	at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2539)
	at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2321)


很明顯了:用戶沒有權(quán)限訪問數(shù)據(jù)庫

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI