先看出错信息:(其实这个报错,就是不顺眼,不会影响工程的。)
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下,
就避免了上述报错。
表达不清楚之处,请多多指教!
分享到:
相关推荐
信息: 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...
严重: The web application [/img] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been...
I have been a big fan of the Spring Framework since its first release in 2004 and have been using it in almost all my projects. When the application server written by the same company—the ...
海外策略:GameStop事件,Game_Stopped?
20210222-中金公司-海外策略:GameStop事件,Game_Stopped?.pdf
海外策略:GameStop事件,Game_Stopped?-20210222-中金公司-22页.pdf
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 ...
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 ...
kafka-eagle编译好的包
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 ...
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 ...
$ docker run --name trsa-web -p 8080:8080 --restart unless-stopped odumunc/trsa-web:2.0 然后使用网络浏览器访问容器的IP: $ links http://172.17.0.2:8080/trsa-web-2.0 构建您的Docker容器 要构建自己的...
实时评论系统的视频演练安装 # Clone this repositorygit clone https://github.com/sairajsawant/comment-system.git# Fire up MongoDB containerdocker run -d -p 27017:27017 --restart unless-stopped --name ...
有效值: running或stopped 。 默认值: running 。 onboot - 是否在启动时启用或禁用服务。 有效值: true或false 。 默认值: true - 启用。 worker_processes - nginx 应该使用多少工作进程。 默认$::
- reflex-aws-cloudtrail-logging-stopped: configuration: mode: remediate version: latest 或直接将其添加到您的Terraform中: module "cloudtrail-logging-stopped" { source = "git::...
WinHTTP Web Proxy Auto-Discovery Service 服务处于 停止 状态还有,我的服务器没有使用WEB代理和防火墙客户端。