簡體   English   中英

非法訪問:此 web 應用程序實例已被停止。 Tomcat 停止運行

[英]Illegal access: this web application instance has been stopped already. Tomcat Stop Run

Apache Tomcat 服務器 9.0.19 未啟動。 我創建了新項目並包含 tomcat 但未啟動並出現此錯誤

08-May-2019 23:18:03.205 INFO [mysql-cj-abandoned-connection-cleanup] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading 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:1383)
    at org.apache.catalina.loader.WebappClassLoaderBase.getResource(WebappClassLoaderBase.java:1036)
    at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.checkThreadContextClassLoader(AbandonedConnectionCleanupThread.java:117)
    at com.mysql.cj.jdbc.AbandonedConnectionCleanupThread.run(AbandonedConnectionCleanupThread.java:84)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)

下面的一些解決方案,其中包含關於 stackoverflow 的問題

  • 重啟 tomcat
  • 刪除緩存
  • 輸入 vm 選項:“-XX:MaxPermSize=1024m”

但仍然不起作用。

誰能幫我

您應該嘗試從tomcat的webapps中刪除現有的部署戰爭,並嘗試重新部署新戰爭。 您的任何現有應用程序似乎都具有與您的新項目相沖突的相同包裝細節。

清除那些不需要的webapps的戰爭(和那些目錄)。

和我有同樣的問題。 我剛剛刪除(不是卸載)舊的 tomcat 並在與以前相同的目錄中安裝了相同版本的新 tomcat。 對我來說很完美。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM