Illegal access: this web application instance has been stopped already
来源:互联网 发布:requirejs 加载json 编辑:程序博客网 时间:2024/05/17 04:09
转载自:http://blog.csdn.net/nujiah001/article/details/4777746
Illegal access: this web application instance has been stopped already .Could not load java.net.BindException.
信息: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. 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:1244)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at com.mysql.jdbc.CommunicationsException.<init>(CommunicationsException.java:155)
at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2723)
解决办法:
将tomcat的server.xml中的Context的reloadable设成false。
比如:<Context path="/expert" docBase="expert" debug="0" reloadable="false">
解决办法也容易,只要把tomcat的server.xml 中的reloadable="true" 改成false就行了,不过这样做就失去了热部署的优势了,对于开发不是很方便,干脆还是不改吧。这种错误不用理会.
报错原理:
原因是因为在tomcat重启的时候,因为之前的tomcat中的线程还没有完全关闭,新启动tomcat就会报这个异常,不过这个不影响正常使用,只是跳个异常挺烦人的。使用过hibernate, spring或其他大型组件,当一个WEB应用系统中有很多类时,如果开启了Tomcat的reloadable=true,那么每当相关文件改变时, Tomcat会停止web app并释放内存,然后重新加载web app.这实在是个浩大的工程。所以我们总是在想如果能有只重载某几个类的功能,将极大的满足了我们的调试。
当response.sendRedirect("xxxx"); 时,而客户端关闭了浏览器,就会出这种错.
并非程序错误.
- Illegal access: this web application instance has been stopped already
- Illegal access: this web application instance has been stopped already.
- Illegal access: this web application instance has been stopped already . .
- Illegal access: this web application instance has been stopped already
- Illegal access: this web application instance has been stopped already
- Illegal access: this web application instance has been stopped already .
- Illegal access: this web application instance has been stopped already
- Illegal access:this web application instance has been stopped already
- 项目Redeploy异常---Illegal access: this web application instance has been stopped already.
- Tomcat异常Illegal access:this web application instance has been stopped already
- INFO: Illegal access: this web application instance has been stopped already. Could not load oracle
- INFO: Illegal access: this web application instance has been stopped already. Could not load
- Illegal access: this web application instance has been stopped already. Could not load
- java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already.
- 由Illegal access: this web application instance has been stopped already. 引出的tomcat配置问题
- INFO: Illegal access: this web application instance has been stopped already
- Java异常---Illegal access: this web application instance has been stopped already
- Illegal access: this web application instance has been stopped already .【心里的疑惑化解了】
- 静态变量初始化
- Could not load java.net.BindException异常的解决办法
- Java的内存结构(Memory Structure)和垃圾收集(Garbage Collection)图解 (转载)
- 用Linux的iptables和Python模拟广域网
- eclipse package,source folder,folder区别及相互转换
- Illegal access: this web application instance has been stopped already
- sql server2008
- Android开源框架ImageLoader||异步加载图片
- libpcap+PF_RING源码分析一、二
- 异常变量输出时,是输出异常类
- css3中transform兼容ie 倾斜div
- 载着你骑车去海边 你动了心说要许愿 那纸飞机画的弧线 消失不见只见海面
- 关于java中同步异步的处理
- (二)APNS 消息推送 开发测试环节