簡體   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