详细错误信息如下:

[mybatis-plus MapperRefresh] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already. Could not load [META-INF/services/javax.xml.xpath.XPathFactory]. 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 [META-INF/services/javax.xml.xpath.XPathFactory]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.

关键信息如下:

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
this web application instance has been stopped already

初次看到这个问题,我也是一头雾水,因为没有影响正常的项目对外服务,但是严重影响线上对接客户端时日志的阅读。

后来通过搜索知道了原因,原来是因为服务器上其中两个tomcat下的webapps项目相同导致的,而且这两个tomcat又是运行的,所以才导致这样的错误,于是我将另外的测试tomcat去除掉,问题就迎刃而解。

问题解决参考链接:
关于tomcat启动报“this web application instance has been stopped already”的处理

org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄