3월 12, 2019 7:46:18 오후 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:1348)

at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1007)

at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)

at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)


클래스 파일을 수정하거나 저장 중에 자꾸 이 에러가 뜨는게 거슬렸다.

찾아보니 톰캣 서버가 started인 상태에서 클래스 파일을 수정하거나 저장을 하면 자동 reloading이 되면 발생하는 에러라고 한다.



해결방법은 아래와 같이 [Servers]-[Tomcat]-server.xml 로 들어간다.



그리고 아래로 내려가보면  Host부분에 현재 작업하고 있는 프로젝트 Context가 있을 것이다.

reloadable="true"를 --> "false"로 변경해준다.



일단 이것으로 문제를 해결했다.

+ Recent posts