this web application instance has been stopped already.


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/

 

一、問題描述

Xml代碼   收藏代碼
  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.   
  4. Apr 20, 2017 8:49:31 AM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal  
  5. 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.  
  6.   
  7. Apr 20, 2017 8:49:34 AM org.apache.catalina.loader.WebappClassLoaderBase findResourceInternal  
  8. 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就會報這個異常。

針對這種情況,在網上找了些原因

Java代碼   收藏代碼
  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,如:

Xml代碼   收藏代碼
  1. <Context path="" docBase="/home/java/tomcat7/webapps/finance" debug="0" reloadable="true"/>  

 改成

Xml代碼   收藏代碼
  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/


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM