this web application instance has been stopped already.

Could not load oracle/sql/converter_xcharset/lx20354.glb.

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

©Copyright 蕃薯耀 2017年4月21日

http://www.cnblogs.com/fanshuyao/

一、问题描述

  1. Apr 20, 2017 8:49:24 AM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
  2. INFO: Illegal access: this web application instance has been stopped already.  Could not load oracle/sql/converter_xcharset/lx20354.glb.  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.
  3. Apr 20, 2017 8:49:31 AM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
  4. INFO: Illegal access: this web application instance has been stopped already.  Could not load oracle/sql/converter_xcharset/lx20354.glb.  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.
  5. Apr 20, 2017 8:49:34 AM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal
  6. INFO: Illegal access: this web application instance has been stopped already.  Could not load oracle/sql/converter_xcharset/lx20354.glb.  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的访问,一样是可以用的。只是这个问题不断的在日志中打印,看着不爽或者也会导致其它未知的问题。

二、解决方案

方法一:

原因是因为在tomcat重启的时候,之前的tomcat的线程还没有完全关闭,最新启动tomcat就会报这个异常。

针对这种情况,在网上找了些原因

  1. 运行tomcat/bin/shutdown.sh,tomcat停止,但它的java进程还在,事不过状态为S(sleep),不是运行时的R(Runnable),如果不kill的话,这种进程越来越多

不过暂时未验证。

解决方法是重启Tomcat和Apache服务器,我把整个Linux服务器重启后就可以了正常使用,现做个记录,后面验证。同时也可以清除tomcat的临时目录(如:D:\tomcat-7.0.63\work\Catalina),避免文件冲突问题。

方法二:

避免这种错误另一种做法,就是修改tomcat下conf/server.xml文件,把host节点中context中的reloadable修改为false,如:

  1. <Context path="" docBase="/home/java/tomcat7/webapps/finance" debug="0" reloadable="true"/>

改成

  1. <Context path="" docBase="/home/java/tomcat7/webapps/finance" debug="0" reloadable="false"/>

但是这样做会失去热部署的优势,而且对于开发也不是很方便,建议不要用这种方式。

相关文章:

http://stackoverflow.com/questions/35739646/java-lang-illegalstateexception-while-reloading-tomcat-server/35923946#35923946

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

©Copyright 蕃薯耀 2017年4月21日

http://www.cnblogs.com/fanshuyao/

最新文章

  1. 生产uuid
  2. Sqlite基础及其与SQLServer语法差异
  3. 如何在tomcat安装部署php项目
  4. 4.MVC框架开发(母版页的应用、按钮导致的Action处理、从界面向控制器传数据和HtmlHelper控件的实现(注册的实现))
  5. smarty练习:考试系统
  6. 给config加密
  7. singleton pattern
  8. c#数据库操作大全
  9. HDU1257 最少拦截系统 (贪心+STL+二分)
  10. asp.net web api 控制器
  11. [LeetCode] Redundant Connection II 冗余的连接之二
  12. 【48】java抽象类和接口的定义和区别
  13. Could not load file or assembly……
  14. ffmpeg源码编译安装(Compile ffmpeg with source) Part 1 : 通用部分
  15. js让元素获取焦点
  16. HBase表的基本结构和常用命令行操作
  17. 免费 web 后台管理 网站
  18. loadrunner&#160;场景设计-添加Unix、Linux&#160;Resources计数器
  19. 树莓派学习笔记(2):常用linux命令
  20. 有关于一次windows权限方面的一次学习

热门文章

  1. 棋盘覆盖(一) ACM
  2. SEO-长尾词与分词技术
  3. TreeSet集合如何保证元素唯一
  4. 【读书笔记】-- 你不知道的JavaScript
  5. 【Unity游戏开发】浅谈 NGUI 中的 UIRoot、UIPanel、UICamera 组件
  6. 20. Valid Parentheses - 括号匹配验证
  7. IOS开发创建开发证书及发布App应用(八)——使用Application Loader工具上传应用
  8. 20155304 2016-2017-2 《Java程序设计》第六周学习总结
  9. html中引入调用另一个html的方法
  10. 通过php动态传数据到highcharts