詳細錯誤信息如下:
[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.
關鍵信息如下:
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