`
xihongshi414
  • 浏览: 35532 次
  • 性别: Icon_minigender_2
  • 来自: 武汉
最近访客 更多访客>>
社区版块
存档分类
最新评论

Illegal access: this web application instance。。。

阅读更多
Illegal access: this web application instance has been stopped already.

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">

原因是因为在tomcat重启的时候,因为之前的tomcat中的线程还没有完全关闭,新启动tomcat就会报这个异常,不过这个不影响正常使用,只是跳个异常挺烦人的。不过这样做就失去了热部署的优势了,对于开发不是很方便,干脆还是不改吧。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics