java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load []. The following stack trace is thrown for debugging purpo
ses as well as to attempt to terminate the thread which caused the illegal access.
我将一个项目放进ROOT里tomcat就总是报这个错,当我把ROOT里的项目删掉之后tomcat就能正常启动了。呃,其实 这也算是一个解决方法,但我就是需要将项目放进ROOT,所以这个方法不适合我现在使用。
解决方法:
在tomcat的conf文件夹中找到server.xml,然后在<host></host>之间加上<Context path="" docBase="C:\Users\Administrator\Desktop\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39\webapps\jzsm" debug="0" reloadable="false"></Context>,如果有了这个标签就直接修改就行了,tomcat默认是不会加上的。
Java课堂 www.javaketang.com中智软件科技学校