非法访问:此Web应用程序实例已被停止。 Tomcat停止运行

时间:2019-05-08 20:29:23

标签: java spring-mvc tomcat

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”

但仍然无效。

谁能帮我

1 个答案:

答案 0 :(得分:0)

您应该尝试从tomcat的Web应用程序中删除现有部署的战争,然后尝试重新部署新的战争。看来您现有的任何应用程序都具有与您的新项目相冲突的打包详细信息。

清除不需要的web应用中的那些战争(和目录)。