现在的位置: 首页 > 综合 > 正文

this web application instance has been stopped alr

2018年06月30日 ⁄ 综合 ⁄ 共 688字 ⁄ 字号 评论关闭

-Illegal access: this web application instance has been stopped already

2006-9-11 11:33:27 org.apache.catalina.loader.WebappClassLoader loadClass
信息: Illegal access: this web application instance has been stopped already (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)

解决办法:
将tomcat的server.xml中的Context的reloadable设成false。
比如:<Context path="/expert" docBase="expert" debug="0" reloadable="false">

这样改下有什么用呢?

使用过hibernate, spring或其他大型组件,写过50个类以上的网络应用程序(web application)的开发者应该知道,当系统中有很多类时,如果开启了Tomcat的reloadable=true,那么每当相关文件改变时, Tomcat会停止web app并释放内存,然后重新加载web app.这实在是个浩大的工程。

所以我们总是在想如果能有只重载某几个类的功能,将极大的满足了我们的调试。

抱歉!评论已关闭.