[英]Eclipse and Tomcat 8.0.35 app ERROR: Illegal access: this web application instance has been stopped already
I'm running a Java app in Eclipse EE Oxygen 32 bit in a 64 machine since the program will be transferred to a 32 bit machine later. 我正在64台计算机上的32位Eclipse EE Oxygen中运行Java应用程序,因为该程序将在以后转移到32位计算机上。 The app is connected to mysql installed through Wampserver, and the server I'm using in the app is Apache Tomcat 8.0.35.
该应用程序连接到通过Wampserver安装的mysql,而我在该应用程序中使用的服务器是Apache Tomcat 8.0.35。 When I run the app in "Run as> Run on Server" inside Eclispe.
当我在Eclispe的“运行方式>在服务器上运行”中运行应用程序时。 I get the following error message in "Console":
我在“控制台”中收到以下错误消息:
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:1372)
at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1042)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.checkContextClassLoaders(AbandonedConnectionCleanupThread.java:90)
at com.mysql.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
How can I debug that? 我该如何调试?
The java code is totally portable across 32-bit and 64-bit platforms, doesn't make sense to use a 32 bit Eclipse version. Java代码完全可以在32位和64位平台上移植,而使用32位Eclipse版本没有任何意义。
To solve your issue, just restart the Tomcat server to get rid of the older cache then try again. 要解决您的问题,只需重新启动Tomcat服务器以摆脱旧的缓存,然后重试即可。
If still doesn't work: 如果仍然不起作用:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.