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