java.lang.IllegalStateException错误 自己记录一下 粗心大意的错!

12-Sep-2020 18:26:34.480 璀﹀憡 [RMI TCP Connection(9)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc Web搴旂敤绋嬪簭 [ssm_war_exploded] 娉ㄥ唽浜咼DBC椹卞姩绋嬪簭 [com.mysql.cj.jdbc.Driver]锛屼絾鍦╓eb搴旂敤绋嬪簭鍋滄鏃舵棤娉曟敞閿�瀹冦�� 涓洪槻姝㈠唴瀛樻硠婕忥紝JDBC椹卞姩绋嬪簭宸茶寮哄埗鍙栨秷娉ㄥ唽銆�
12-Sep-2020 18:26:36.230 淇℃伅 [mysql-cj-abandoned-connection-cleanup] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
	java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
		at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1385)
		at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1038)
		at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkThreadContextClassLoader(AbandonedConnectionCleanupThread.java:117)
		at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:84)
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
		at java.lang.Thread.run(Thread.java:748)

java.lang.IllegalStateException错误 自己记录一下 粗心大意的错!_第1张图片

applicationContext.xml(即spring配置文件)配置里面写错代码!导致tomcat启动时初始化一系列发生错误! 

仔仔细细检查一遍你的xml配置文件啥都有没有写错!!!搞了我一下午!

你可能感兴趣的:(spring,xml,tomcat)