解决tomcat stop报Illegal access: this web application instance has been stopped异常方法

阅读更多
解决tomcat stop报Illegal access: this web application instance has been stopped异常方法

运行shutdown.bat/shutdown.sh关闭tomcat的时候,控制台可能抛出以下异常:
Illegal access: this web application instance has been stopped already.  Could not load org.frameworkset.spi.BaseApplicationContext$2.  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
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1600)
	at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)
	at org.frameworkset.spi.BaseApplicationContext.shutdown(BaseApplicationContext.java:684)
	at org.frameworkset.spi.BaseApplicationContext$1.run(BaseApplicationContext.java:94)
	at java.lang.Thread.run(Thread.java:662)


出现这种问题时,在web.xml文件中添加bboss mvc的应用启动监听器,问题一般就可以得到解决,添加方法如下:

	BBOSS-MVC
	
		
		
	
		org.frameworkset.web.listener.ApplicationLifeListener
	
.........



你可能感兴趣的:(bboss,应用装载卸载监听器)