问题描述:
发现Tomcat报了一个异常:
org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stopped already.
问题原因:
最后发现tomcat启动了两个进程。
解决办法:
1、查找出tomcat的进程,命令如下:
ps -ef | grep tomcat
2、杀掉tomcat进程,命令如下:
kill -9 进程的pid号
3、启动tomcat,恢复正常。 命令如下:
sh startup.sh