First look at the error information: (in fact, this error is not pleasing to the eye and will not affect the project .)
2010-2-8 20:33:56 org. Apache. Catalina. Core. standardcontext reload
Information: Reloading this context has started
* ******** Remove context 9999999999
2010-2-8 20:33:56 org. Apache. Catalina. Core. applicationcontext log
Information: Closing spring root webapplicationcontext
[Info] | 2010/02/08 20:33:56 | sessionfactoryimpl. Java | (close: 769) Closing
2010-2-8 20:33:56 org. Apache. Catalina. Core. applicationcontext log
Information: Shutting Down log4j
2010-2-8 20:33:57 org. Apache. Catalina. Core. applicationcontext log
Information: Set web app root system property: 'webapp. root' = [c: \ softdn \ product \ wyweb \ webroot \]
2010-2-8 20:33:57 org. Apache. Catalina. Core. applicationcontext log
Information: initializing log4j from [c: \ softdn \ product \ wyweb \ webroot \ WEB-INF \ log4j. properties]
2010-2-8 20:33:57 org. Apache. Catalina. Core. applicationcontext log
Information: initializing spring root webapplicationcontext
2010-2-8 20:33:57 org. Apache. Catalina. loader. webappclassloader loadclass
Information: Illegal Access: This web application instance has been stopped already. cocould not load com. MySQL. JDBC. sqlerror. 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: 1273)
At org. Apache. Catalina. loader. webappclassloader. loadclass (webappclassloader. Java: 1233)
At java. Lang. classloader. loadclassinternal (classloader. Java: 320)
At com. MySQL. JDBC. mysqlio. Send (mysqlio. Java: 3270)
At com. MySQL. JDBC. mysqlio. Quit (mysqlio. Java: 1659)
At com. MySQL. JDBC. connectionimpl. realclose (connectionimpl. Java: 4296)
At com. MySQL. JDBC. connectionimpl. Cleanup (connectionimpl. Java: 1265)
At com. MySQL. JDBC. connectionimpl. Finalize (connectionimpl. Java: 2667)
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)
This error is more concealed. Let's look at the error information and push it backwards, which is the most direct.
This error occurs only when the following conditions are met:
1. View: This web application instance has been stopped already
Therefore, you must restart Tomcat before sending it. This is the first error condition.
2. Check that cocould not load com. MySQL. JDBC. sqlerror
We cannot directly launch the problem generation conditions, but it is obviously about MySQL JDBC.
Therefore, it should occur when MySQL JDBC is used (1) or loading (2.
This is the case, so what is the condition? Or will they both generate?
It cannot be determined only by the above data. In this case, you need to disable Tomcat and restart tomcat to determine whether it is related to the second condition,
After all the commands are disabled, restart tomcat. If no problem occurs, the above error message is displayed. The system is normal.
Therefore, it must be because an error is reported when MySQL JDBC is used. In this way, the second necessary condition is found.
To sum up the above two points, in other words, you restart the project (probably because the code is changed directly and the project is reloaded), and you have connected to the database (login, etc ), the above error message is displayed.
Think about it. What is the first thought? The loading sequence of cache and jar packages is what I can think of. I don't know what you think.
I think that when I use the DB Link, I re-load the MySQL driver jar package.
So, cut the WEB-INF under webroot \ mysql-connector-java-5.1.7-bin.jar \ Lib to Tomcat 6.0 \ Lib,
The above error is avoided.
I am not clear about it. Please give me more advice!