重启Tomcat,后台报Illegal access: this web application instance has been stopped already. Could not load java.lang.Object. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
原因是因为在tomcat重启的时候,因为之前的tomcat中的线程还没有完全关闭,新启动tomcat就会报这个异常,不过这个不影响正常使用,只是跳个异常挺烦人的。
解决办法也容易,只要把tomcat的server.xml 中的reloadable="true" 改成false
java.lang.IllegalStateException
原因是因为在tomcat重启的时候,因为之前的tomcat中的线程还没有完全关闭,新启动tomcat就会报这个异常,不过这个不影响正常使用,只是跳个异常挺烦人的。
解决办法也容易,只要把tomcat的server.xml 中的reloadable="true" 改成false
本文详细解释了当Tomcat重启时遇到'IllegalStateException: this web application instance has been stopped already'错误的原因及解决方案,通过修改server.xml文件中的reloadable属性,避免异常跳转,确保Tomcat稳定运行。
1203

被折叠的 条评论
为什么被折叠?



