简体   繁体   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

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: 如果仍然不起作用:

  1. Restart Eclipse 重新启动Eclipse
  2. Clean up Eclipse working directory (see @nitind comment). 清理Eclipse工作目录(请参阅@nitind注释)。
  3. Run Eclipse in clean mode (see this ) 以干净模式运行Eclipse(请参阅

暂无
暂无

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

相关问题 非法访问:此 web 应用程序实例已被停止。 Tomcat 停止运行 - Illegal access: this web application instance has been stopped already. Tomcat Stop Run 非法访问:此Web应用程序实例已被停止 - Illegal access: this web application instance has been stopped already 非法访问:此 Web 应用程序实例已被停止 - Illegal access: this web application instance has been stopped already 非法访问 - 此 Web 应用程序实例已停止。 - Illegal access- this web application instance has been stopped already. org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 非法访问:此 Web 应用程序实例已停止 - org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already java.lang.IllegalStateException: 非法访问:此 Web 应用程序实例已停止 - java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already 信息:非法访问:此 Web 应用程序实例已停止。 无法加载 java.net.InetAddress - INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.InetAddress 非法访问:此Web应用程序实例已被停止。 无法加载org.apache.log4j.spi.NOPLoggerRepository - Illegal access: this web application instance has been stopped already. Could not load org.apache.log4j.spi.NOPLoggerRepository 为什么从/ manager重新启动应用程序会导致“此Web应用程序实例停止运行”的错误。 ”警告。 为什么? - Why Does Restarting Applications From /manager Cause A Slew of “this web application instance has been stopped already. ” warnings. Why? tomcat已经停止了 - tomcat has been stopped
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM