Java异常---Illegal access: this web application instance has been stopped already
来源:互联网 发布:unity3d 动漫人物模型 编辑:程序博客网 时间:2024/06/06 02:46
java.lang.IllegalStateException
非法访问:此Web应用程序实例已停止了。无法加载java.net.BindException。最终是由下面的堆栈跟踪调试目的,以及试图终止线程从而导致非法访问抛出一个错误造成的,并没有功能的影响。
这个是在关闭应用服务器或重新部署装载项目失败会发生。当应用程序卸载时,并不会关闭所有的线程。当tomcat已经关闭了其类加载器后,一些线程依然会继续运行,这样就导致出错,这些错误就会被到日志文件里。
解决方法是:修改tomcat目录下conf文件夹下的server.xml,
<Context>代表了运行在<Host>上的单个Web应用,一个<Host>可以有多个< Context>元素,每个Web应用必须有唯一的URL路径,这个URL路径在<Context>中的属性path中设定。
<Context path="/helloApp" docBase="helloApp" debug="0" reloadable="true"/>
<Context>元素的属性:
path:指定访问该Web应用的URL入口。
docBase:指定Web应用的文件路径,可以给定绝对路径,也可以给定相对于<Host>的appBase属性的相对路径,如果Web应用采用开放目录结构,则指定Web应用的根目录,如果Web应用是个war文件,则指定war文件的路径。
reloadable:如果这个属性设为true,tomcat服务器在运行状态下会监视在WEB-INF/classes和WEB-INF/lib目录下class文件的改动,如果监测到有class文件被更新的,服务器会自动重新加载Web应用
本文转载自新浪博客:Java异常---Illegal access: this web application instance has been stopped already
- Java异常---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
- 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
- tomcat异常:Illegal access: this web application instance has been stopped already. Could not load ...
- Illegal access:this web application instance has been stopped already异常的解决办法
- Tomcat异常:Illegal access: this web application instance has been stopped already. Could not load java.lang.Object.
- java.lang.IllegalStateException: 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
- 题解——添加回文串
- AndroidDevTools
- 全面解析$.Ajax()方法参数(推荐)
- matlab将视频转成每一帧的方法
- Js实现显示剩余X天X小时X分X秒
- Java异常---Illegal access: this web application instance has been stopped already
- mysql函数
- 已搭建SVN 的Linux主机上创建项目
- AngularJs的集中环境搭建方式
- 使用HtmlUnit做爬虫
- 青蛙换位问题之递归回溯法
- 树与二叉树
- 2016微软技术大会门票在线抢,最后半天!!!
- 关于fragment与activity生命周期相关讨论