7days

快乐工作,快乐生活!
tomcat 的Illegal access 故障

异常信息:

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

在用Eclipse开发时,tomcat有时会出现以上的异常。如果你的tomcat配置设为自动重加载web程序,就很可能出现上面的问题,关闭tomcat容器重启也可能会没效果。打开任务管理器,你会发现其中有一项javaw.exe进程,javaw和java.exe一样用来运行你的java程序,区别是用图形化编辑器如Eclipse时调用javaw,文本编辑器则是java.exe。关闭tomcat后还存在这个进程说明你的web程序还在被占用。结束它就ok了。

posted on 2010-06-10 02:40  7days  阅读(2898)  评论(0编辑  收藏  举报