繁体   English   中英

Eclipse和Tomcat 8.0.35应用程序错误:非法访问:此Web应用程序实例已被停止

[英]Eclipse and Tomcat 8.0.35 app ERROR: Illegal access: this web application instance has been stopped already

我正在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服务器以摆脱旧的缓存,然后重试即可。

如果仍然不起作用:

  1. 重新启动Eclipse
  2. 清理Eclipse工作目录(请参阅@nitind注释)。
  3. 以干净模式运行Eclipse(请参阅

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM