先看出错信息:(其实这个报错,就是不顺眼,不会影响工程的。)
2010-2-8 20:33:56 org.apache.catalina.core.StandardContext reload
信息: Reloading this Context has started
********** Remove Context 9999999999
2010-2-8 20:33:56 org.apache.catalina.core.ApplicationContext log
信息: 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
信息: Shutting down log4j
2010-2-8 20:33:57 org.apache.catalina.core.ApplicationContext log
信息: 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
信息: Initializing log4j from [C:\Softdn\product\wyweb\WebRoot\WEB-INF\log4j.properties]
2010-2-8 20:33:57 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2010-2-8 20:33:57 org.apache.catalina.loader.WebappClassLoader loadClass
信息: Illegal access: this web application instance has been stopped already
. Could 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.access$100(Finalizer.java:14)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
这个错误比较隐蔽的说,我们来个看报错信息倒推,这样最直接啦。
要满足如下条件才会出现这个错误:
1,看:this web application instance has been stopped
already
所以,需要重启Tomcat的情况下才有可能发上,这是第一个出错条件。
2,看:Could not load
com.mysql.jdbc.SQLError
看这个不能直接推出问题产生条件,但是很明显是关于mysql jdbc的。
所以,应该是在使用了mysql jdbc时(其一) 或 加载时(其二)发生的。
这时候就出现了种情况,那么到底是那种条件呢? 还是两其一、其二都会产生?
仅凭以上数据无法判断,这时要用关闭tomcat,重启tomcat,来判断是否跟其二条件有关,
全部关闭后,重启tomcat,没有问题出现上述报错信息,系统正常。
所以,肯定是因为使用了mysql jdbc时报的错,这样,第二个必要条件就找到了。
总结以上两点,通俗点讲,就是你重启了工程(可能是因为直接修改代码,工程reload了), 并且,连过了数据库(登录等),才出现了上述报错信息。
想吧,首先想到的是什么? 缓存和jar包加载顺序,是我能想到的,不知道你想到了什么。
我想到的是,在使用db 链接时,重新加载了mysql的驱动jar包导致的。
于是乎,将WebRoot\WEB-INF\lib下的mysql-connector-java-5.1.7-bin.jar剪贴
到Tomcat 6.0\lib下,
就避免了上述报错。
表达不清楚之处,请多多指教!
分享到:
相关推荐
然而,在日常运维过程中,开发者和运维人员可能会遇到一些常见的问题,如“this web application instance has been stopped already”的异常。本文将深入探讨这个问题的原因以及相应的解决方案,并延伸讨论在不重启...
信息: Illegal access: this web application instance has been stopped already. Could not load net.sf.ehcache.store.disk.DiskStore$KeySet. The eventual following stack trace is caused by an error thrown...
SEVERE: The web application [/xxx] registered the JDBC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the...
- 将现在完成时的肯定句变为一般疑问句,将"have/has"提前:如"Has the rain already stopped?" - 对时间进行提问,使用"How long":如"How long have you waited here?" 6. 其他常见的时间状语: - "in the ...
此外,还需要区分"has gone to","has been to","has been in"的用法: 1. "has gone to"表示"去了还没回来",如"He has gone to Beijing." 2. "has been to"表示"曾经去过,现在已经回来了",并可以加上次数,如...
【标题】:“海外策略:GameStop事件,Game_Stopped?” 【描述】:“海外策略:GameStop事件,Game_Stopped?”这一主题涉及到2021年金融市场中一次轰动性的事件,即GameStop股票的狂飙突进。这场由散户投资者集体...
t : ping continuously until stopped via control c n 5 : for instance send 5 pings i 5 : for instance ping every 5 seconds w 100 : for instance wait 100 milliseconds for a response d : include ...
13/05/01 23:01:13 : [Server] Server stopped! 13/05/01 23:01:35 : [GUI] Try to start server... 13/05/01 23:01:36 : [Server] Start Listening TCP port: 8080 13/05/01 23:01:36 : [Server] Start Listening ...
- already(已经):I have already done my homework. - yet(还,未):I have not finished my homework yet. - never(从不,从没):I have never read this story. - ever(曾经):Have you ever watched ...
标题:“***-中金公司-海外策略:GameStop事件,Game_Stopped?” 描述:本报告深入分析了2021年1月中下旬发生的GameStop事件,详细探讨了该事件的起因、过程以及事件中各方的角色和影响。报告指出,GameStop股票...
"海外策略:GameStop事件,Game_Stopped?" 本报告对 GameStop 事件进行了深入分析,探讨了事件的始末、原因、参与各方的角色和影响。GameStop 事件是指 GameStop 股价暴涨暴跌的事件,期间股价三周涨幅达 27 倍,...
然而,在某些情况下,虚拟机可能无法被保护,例如:Stopped - Fault Tolerance has been stopped on the secondary virtual machine,Need Secondary VM - The primary virtual machine is running without a ...
This has been corrected. Release 5.3 build 1020 WIN32 release 29 May 2008 - BurnInTest could have crashed on accessing bad video memory hardware in the 2D test. This problem is now just reported ...
- **Option B**: All data on instance-store devices will be lost when the instance is stopped and started. Instance-store volumes are ephemeral and their data is not preserved across instance stop/...
* 表示某一动作已经开始,并且还在继续,如 I have been reading this book for two hours.(我已经读这本书两小时了。) 标志词 现在完成时的标志词有七个: * already(已经) * never(从来没有) * ever...
The web application [web application] registered the JDBC driver [net.sourceforge.jtds.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC...
This bug has been fixed - After driver uninstall, not all of the S7A-related registry entries were deleted. Now the registry will be completely cleaned from S7A registry entries after uninstall. -...
As announced earlier this year, unfortunately Canon has stopped developing an SDK for our PowerShot digital cameras, and it is being phased out during this year. We would therefore like to notify you ...
报错1: Using python /usr/bin/python Starting ambari-server Ambari Server running with administrator privileges. ERROR: Exiting with exit code -1. REASON: Before starting Ambari Server, you must copy ...
- 提供了若干练习题来检验学生对现在完成时的理解和应用,如选择题和填空题,涉及 `have/has been` 和 `have/has gone` 的区分,以及使用现在完成时表达持续性动作。 通过这个导学案,学生将深入学习现在完成时,...