When you restart tomcat or (when the Tomcat service is enabled and the project is re-deployed), the following exception occurs:
Information: Illegal Access: This web application instance has been stopped already. cocould not load java.net. bindexception. the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt
To terminate the thread which caused the illegal access, and has no functional impact.
Java. Lang. illegalstateexception
At org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1272)
At org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1232)
At java. Lang. classloader. loadclassinternal (classloader. Java: 320)
At com. MySQL. JDBC. communicationsexception. <init> (communicationsexception. Java: 161)
At com. MySQL. JDBC. mysqlio. Send (mysqlio. Java: 2759)
At com. MySQL. JDBC. mysqlio. Quit (mysqlio. Java: 1410)
At com. MySQL. JDBC. Connection. realclose (connection. Java: 4947)
At com. MySQL. JDBC. Connection. Cleanup (connection. Java: 2063)
At com. MySQL. JDBC. Connection. Finalize (connection. Java: 3403)
At java. Lang. Ref. finalizer. invokefinalizemethod (native method)
At java. Lang. Ref. finalizer. runfinalizer (finalizer. Java: 83)
At java. Lang. Ref. finalizer. acces100 $ (finalizer. Java: 14)
At java. Lang. Ref. finalizer $ finalizerthread. Run (finalizer. Java: 160)
The reason is: Tomcat failed to reload the web application. When an application is uninstalled, it does not close all threads. When tomcat has closed its class loader, some threads continue to run, which leads to errors. However, this does not affect normal use. No matter whether the impact is not affected, it is difficult to see the exception information.
Solution: Modify the context in the Tomcat directory. XML, find the <context> label, and set the reloadble property value to: reloadable = "false", that is, <context reloadable = "false">.