this web application instance has been stopped already.

    技术2022-07-10  124

    16-Aug-2019 11:44:03.299 INFO [redisson-netty-2-7] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [io.netty.channel.nio.NioEventLoop]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

    原因: 项目可能在运行的时候,产生一些新的文件,导致tocmat重新加载项目,redis出错了。所以,redis用不了。 解决方法: 把reloadable改成false。 这样,即使项目有新的文件,也不会重新加载,需要手动去重启tomcat才行。 reloadable这个属性非常重要,如果为true,则tomcat会自动检测应用程序的/WEB-INF/lib和/WEB-INF/classes目录的变化,自动装载新的应用程序,我们可以在不重启tomcat的情况下改变应用程序。

    Processed: 0.012, SQL: 9