1. 程式人生 > >web專案啟動報錯:java.lang.IllegalStateException

web專案啟動報錯:java.lang.IllegalStateException

 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:1329)
	at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1004)
	at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
	at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)

 

由於我修改了mapper.xml檔案,在沒修改前專案還能啟動,但是在我啟動後報了這個錯誤:

 

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.

 

百度翻譯後:

非法訪問:此Web應用程式例項已經停止。無法載入[]。為了除錯目的以及嘗試終止導致非法訪問的執行緒,丟擲以下堆疊跟蹤。

 

然後我有檢查了一下mapper.xml檔案,發現是我的jdbcType型別寫錯了,如下

 

 

然後把雙引號去掉  ,就可以正常啟動專案