我正在64台计算机上的32位Eclipse EE Oxygen中运行Java应用程序,因为该程序将在以后转移到32位计算机上。该应用程序已连接到通过Wampserver安装的mysql,而我在该应用程序中使用的服务器是Apache Tomcat 8.0.35。当我在Eclispe的“运行方式>在服务器上运行”中运行应用程序时。我在“控制台”中收到以下错误消息:
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)
我该如何调试?
Java代码可以在32位和64位平台上完全移植,而使用32位Eclipse版本则没有意义。
要解决您的问题,只需重启Tomcat服务器以摆脱旧的缓存,然后重试。
如果仍然不起作用:
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句