INFO: Illegal access: this web application instance has been stopped already. Could not load java.net.InetAddress

前端 未结 4 785
长发绾君心
长发绾君心 2020-12-05 06:36

I\'m experiencing this kind of exception, can someone help me about this problem?

java.lang.IllegalStateException
at         


        
相关标签:
4条回答
  • 2020-12-05 07:05

    I have faced the similar issue. I have solved by increasing the permsize of Server in the VM arguments -XX:MaxPermSize=1024m

    0 讨论(0)
  • 2020-12-05 07:09

    You cannot resolve this problem by "restarting the server".

    The problem is that when you update your app by uploading a new version to Tomcat, some resource is not cleaned up properly. Could be anything from a runaway thread, to some kind of scheduled service, to a listener. When that process tries to load a class, Tomcat will detect and prevent it.

    The solution to the problem is to properly keep track of, and on shutdown close, those threads.

    0 讨论(0)
  • 2020-12-05 07:10

    I have also experienced this problem recently. In my case the problem was generated by an unhandled exception in javax.servlet.ServletContextListener which was logged in one localhost-date.log. Because of that exception the webapp was not deployed, but an already started java.util.concurrent.Executors was still running which caused another chain of exceptions in catalina-date.log:
    java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load WhatEver.class.

    The solution for my case:

    • check all the Tomcat logs
    • fix exceptions in javax.servlet.ServletContextListener
    0 讨论(0)
  • 2020-12-05 07:21

    You can solve this problem after restarting the server, the server iscaching older version of the app.

    see here

    0 讨论(0)
提交回复
热议问题