启动项目报错this web application instance has been stopped already.
来源:互联网 发布:java如何制作图片上传 编辑:程序博客网 时间:2024/06/01 13:32
1.tomcat底下catalina.out日志报如下错误
25-Jul-2016 18:06:41.568 INFO [commons-pool-EvictionTimer] org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading Illegal access:<span style="color:#ff0000;"> this web application instance has been stopped already. Could not load [redis.clients.jedis.exceptions.JedisDataException]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.</span> java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [redis.clients.jedis.exceptions.JedisDataException]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1319)at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1307)at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1172)at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1133)at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:83)at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)at org.apache.commons.pool2.impl.GenericObjectPool.ensureIdle(GenericObjectPool.java:920)at org.apache.commons.pool2.impl.GenericObjectPool.ensureMinIdle(GenericObjectPool.java:899)at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1036)at java.util.TimerThread.mainLoop(Timer.java:555)at java.util.TimerThread.run(Timer.java:505)Exception in thread "commons-pool-EvictionTimer" java.lang.NoClassDefFoundError: redis/clients/jedis/exceptions/JedisDataExceptionat redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:83)at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861)at org.apache.commons.pool2.impl.GenericObjectPool.ensureIdle(GenericObjectPool.java:920)at org.apache.commons.pool2.impl.GenericObjectPool.ensureMinIdle(GenericObjectPool.java:899)at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1036)at java.util.TimerThread.mainLoop(Timer.java:555)at java.util.TimerThread.run(Timer.java:505)Caused by: java.lang.ClassNotFoundException: Illegal access: this web application instance has been stopped already. Could not load [redis.clients.jedis.exceptions.JedisDataException]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1309)at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1172)at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1133)... 7 moreCaused by: java.lang.IllegalStateException: Illegal access: this web application instance has been stopped already. Could not load [redis.clients.jedis.exceptions.JedisDataException]. The following stack trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access.at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForResourceLoading(WebappClassLoaderBase.java:1319)at org.apache.catalina.loader.WebappClassLoaderBase.checkStateForClassLoading(WebappClassLoaderBase.java:1307)... 9 more
2.查看localhost.xxxx-xx-xx.log日志可以看到,需要在web.xml中配置webAppRootKey参数
25-Jul-2016 18:06:12.112 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class org.springframework.web.util.Log4jConfigListener java.lang.IllegalStateException: <span style="color:#ff0000;">Web app root system property already set to different value: 'webapp.root' = [/root/tomcat/webapps/product-statis/] instead of [/root/tomcat/webapps/product-quartz/] - Choose unique values for the 'webAppRootKey' context-param in your web.xml files!</span>at org.springframework.web.util.WebUtils.setWebAppRootSystemProperty(WebUtils.java:146)at org.springframework.web.util.Log4jWebConfigurer.initLogging(Log4jWebConfigurer.java:118)at org.springframework.web.util.Log4jConfigListener.contextInitialized(Log4jConfigListener.java:47)at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4732)at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5194)at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:152)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)
3.两个工程需要在web.xml中配置如下参数,不能相同
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>xxxx</param-value>
</context-param>
0 0
- 启动项目报错this web application instance has been stopped already.
- 使用tomcat manage发布项目报错Illegal access: this web application instance has been stopped already
- Illegal access: this web application instance has been stopped already
- this web application instance has been stopped already解决办法
- this web application instance has been stopped already
- Spring hibernate: this web application instance has been stopped already
- Illegal access: this web application instance has been stopped already.
- Illegal access: this web application instance has been stopped already . .
- this web application instance has been stopped already解决办法
- Illegal access: this web application instance has been stopped already
- this web application instance has been stopped already
- Illegal access: this web application instance has been stopped already
- Illegal access: this web application instance has been stopped already .
- Illegal access: this web application instance has been stopped already
- this web application instance has been stopped already解决办法
- this web application instance has been stopped already问题
- this web application instance has been stopped already
- this web application instance has been stopped already
- onmouseenter 和 onmouseover 的不同
- 扩展名改为pyw后无法运行的问题记录
- exp-imp实现oracle不同表空间的迁移
- linux查看版本号、更改主机名、位数
- shell脚本中怎样添加多行注释
- 启动项目报错this web application instance has been stopped already.
- form 表单提交不刷新页面
- 最详细的JavaScript和事件解读
- 203. Remove Linked List Elements
- .length .length() .size()的使用方法和区别
- Noj Red packet -1651 (二分)
- PullToRefresh源码分析(I)
- android studio 程序退出提示
- Android资源文件夹名称中的修饰语“sw600dp和sw720dp”等是如何对应到具体设备的?