解决this web application instance has been stopped already

时间:2023-01-01 14:51:56

重启tomcat的时候出错

Illegal access: this web application instance has been stopped already.  Could not load oracle.net.mesg.Message.  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.
java.lang.IllegalStateException
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1566)
 at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
 at java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2289)
 at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1364)
 at java.util.ResourceBundle.findBundle(ResourceBundle.java:1328)
 at java.util.ResourceBundle.findBundle(ResourceBundle.java:1282)
 at java.util.ResourceBundle.findBundle(ResourceBundle.java:1282)
 at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1224)
 at java.util.ResourceBundle.getBundle(ResourceBundle.java:705)
 at oracle.net.ns.Message11.getMessage(Unknown Source)
 at oracle.net.ns.NetException.getMessage(Unknown Source)
 at oracle.jdbc.ttc7.TTC7Protocol.connect(TTC7Protocol.java:1695)
 at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:214)
 at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
 at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
 at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
 at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
 at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
 at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
 at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
 at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
 at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
 at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
 at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)

原因是因为在tomcat重启的时候,之前的tomcat的线程还没有完全关闭,最新启动tomcat就会报这个异常,只要把tomcat的server.xml 中的reloadable="true" 改成false就OK

大家看过这个帖子后说没有找到对应的配置,其实就存在于Context节点中,一下是我截取的Tomcat中文一个文档中的注释:

Context(表示一个web应用程序,通常为WAR文件,关于WAR的具体信息见servlet规范) docBase 应用程序的路径或者是WAR文件存放的路径
path 表示此web应用程序的url的前缀,这样请求的url为http://localhost:8080/path/****
reloadable 这个属性非常重要,如果为true,则tomcat会自动检测应用程序的/WEB-INF/lib 和/WEB-INF/classes目录的变化,自动装载新的应用程序,我们可以在不重起tomcat的情况下改变应用程序

解决this web application instance has been stopped already的更多相关文章

  1. this web application instance has been stopped already解决办法

    重启tomcat的时候出错 Illegal access: this web application instance has been stopped already.  Could not loa ...

  2. Tomcat 开发web项目报Illegal access&colon; this web application instance has been stopped already&period; Could not load &lbrack;org&period;apache&period;commons&period;pool&period;impl&period;CursorableLinkedList&dollar;Cursor&rsqb;&period; 错误

    开发Java web项目,在tomcat运行后报如下错误: Illegal access: this web application instance has been stopped already ...

  3. this web application instance has been stopped already&period;

    this web application instance has been stopped already. Could not load oracle/sql/converter_xcharset ...

  4. Caused by&colon; java&period;lang&period;ClassNotFoundException&colon; Illegal access&colon; this web application instance has been stopped already&period; Could not load &lbrack;org&period;jboss&period;netty&period;util&period;internal&period;ByteBufferUtil&rsqb;&period; The following stack

    Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has been ...

  5. Illegal access&colon; this web application instance has been stopped already&period; could not load &ast;&ast;

    启动tomcat的时候会报这样的错误: Illegal access: this web application instance has been stopped already.  could n ...

  6. java&period;lang&period;IllegalStateException&colon; Illegal access&colon; this web application instance has been stopped already&period; Could not load &lbrack;META-INF&sol;services&sol;com&period;alibaba&period;druid&period;filter&period;Filter&rsqb;&period;

    九月 11, 2019 2:56:36 下午 org.apache.catalina.loader.WebappClassLoaderBase checkStateForResourceLoading ...

  7. 项目跑起来之后&comma;一会儿后台就会报错Illegal access&colon; this web application instance has been stopped already&period; Could not load &lbrack;com&period;mchange&period;v2&period;resourcepool&period;BasicResourcePool&dollar;1DestroyResourceTask&rsqb;&period; The following stack trace

    一月 24, 2016 6:42:54 下午 org.apache.catalina.loader.WebappClassLoaderBase checkStateForResourceLoading ...

  8. Tomcat多应用启动报错&colon;org&period;apache&period;catalina&period;loader&period;WebappClassLoaderBase&period;checkStateForResourceLoading Illegal access&colon; this web application instance has been stopped already&period; Could not load &lbrack;&rsqb;&period;

    Loaded org.apache.tomcat.util.net.NioBlockingSelector$BlockPoller$RunnableRemove from .M22/lib/tomca ...

  9. Illegal access:this web application instance has been stopped already

    七月 23, 2014 2:34:35 下午 org.apache.catalina.loader.WebappClassLoader loadClass信息: Illegal access: thi ...

随机推荐

  1. 文本处理三剑客之sed命令

    第十八章.文本处理三剑客之sed命令 目录 sed介绍 sed命令常用选项 sed常用编辑命令 sed使用示例 sed高级语法 18.1.sed简介 sed全名stream editor,流编辑器,s ...

  2. 【jQuery】--图片轮播

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

  3. HA模式下历史服务器配置

    笔者的集群是 HA 模式的( HDFS 和 ResourceManager HA).在 ” Hadoop-2.5.0-cdh5.3.2 HA 安装" 中详细讲解了关于 HA 模式的搭建,这里就不再赘述 ...

  4. SQLite中如何用api操作BLOB类型的字段

    在实际的编程开发当中我们经常要处理一些大容量二进制数据的存储,如图片或者音乐等等.对于这些二进制数据(blob字段)我们不能像处理普通的文本那样简单的插入或者查询,为此SQLite提供了一组函数来处理 ...

  5. Android studio登录界面

    打开Android studio,你需要建立两个类LoginMainAcitivity.java和SuccessMainActivity.java,和与之相对应的xml布局文件login_main.x ...

  6. Vue学习(4)

    昨天内容回顾 1.{{}}模板语法.插值.简单运算2.指令系统 v-if 真正销毁重建 v-show 更改css的display,用于重复切换出现 v-bind 绑定属性 : v-on 绑定事件 @ ...

  7. 引入第三方js文件,报错

    错误:Mixed Content: The page at 'https://localhost:44336/MENU' was loaded over HTTPS, but requested an ...

  8. ZOJ - 3593 One Person Game &lpar;扩展欧几里得&rpar;

    题意:一个人在坐标A,要前往坐标B的位置.可以往左或往右走a,b,a+b个单位,求到达B的最小步数. 分析:扩展欧几里得算法求解线性方程的套路不变.令C=fabs(A-B),c = a+b, 扩展gc ...

  9. Web项目和Windows应用程序的配置文件

    1.Web项目,配置文件应创建在Web项目下,即使是要把配置文件作为一个单独的文件进行配置(比如log4net.config),也需要把该配置文件放在Web项目下:同理Windows应用程序的化,配置 ...

  10. python3读取HDA零售企业数据(一)

    #-*- coding:utf-8 -*- # 下载河南FDA各药品经营企业目录 import urllib.request import urllib.parse import re import ...