java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. 
Could not load [org.apache.logging.log4j.core.impl.Log4jLogEvent$Builder]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.
部署web项目出现在这个问题,其他web项目同样的环境配置没问题,试了修改tomcat的server.xml,将其中的Context的reloadable设成false,或添加:

<Context path="/expert" docBase="expert" debug="0" reloadable="false">

都没能解决。

最后尝试换了个jdk,问题解决,个人认为可能是项目的jar包与jdk的jar包有冲突。

 

记录一下,别扭了我好长时间

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐