Illegalstateexception

Asked

Viewed 48 times

-2

Good afternoon,

I have a simple web application (JSP / Servlets), which when starting on Tomcat 8.5.16, does not "run" and sends the following message on Catalina.out:

INFO [Abandoned connection cleanup thread] 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:1305)
    at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:986)
    at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:96)
    at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:69)
    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)

I use the versions:

Java: 1.8.0_181

Mysql: 5.7.24

JDBC Driver: 8.0.12

OS: Ubuntu Server 18.04 LTS

I’m not using the eclipse, I put . War right into the Webapps folder. Strange that a second application with the same jar’s and settings runs normally.

With this application, starts generating some tables, stops and sends the message above. Would anyone have any idea what that problem might be?

  • Remove War from the folder, put it back and restart Tomcat

1 answer

1


Resolutive:

I removed Tomcat from the computer (all of it, your whole folder!). I downloaded it again, I put War and it worked.

Before doing this, I had already tried to remove only War, put lib’s inside the Tomcat folder, etc... Nothing solved.

Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.