Eclipse Tomcat 8 警告: Unable to add the resource at [***] to the cache...
来源:互联网 发布:淘宝店交易平台 编辑:程序博客网 时间:2024/06/05 07:21
最近在Eclipse中使用Tomcat 8 的时候总是出现大量如下的警告:
警告: Unable to add the resource at [/WEB-INF/lib/springwebmvc-3.0.2.RELEASE.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
在Tomcat 7中一直没有出现这种警告,参考其他文章,解决方法大概有两种:
一种就像上面警告提示的一样,增大缓存空间,找到Tomcat 的存放目录,$CATALINA_BASE/conf/context.xml,比如我的电脑上Tomcat的目录是 D:\Java\apache-tomcat-8.5.4,该目录下找到conf/context.xml配置文件,在context里面添加如下配置:
<Resources cachingAllowed="true" cacheMaxSize="100000" />
第二种方法,就是禁用缓存,disable the cache,在context标签里面添加如下设置:
<Resources cachingAllowed="false"/>
我按照这两种方法修改,在Eclipse里却一直不好使,没有办法,就把server 里的Tomcat全都删掉,重新添加,点击 Window->Preference->Server->Runtime Environment,可以看到 Eclipse 里已有的所有Server
然后重新导入,点击Add,选择你要的版本,找到本地目录,选中Tomcat,然后finish 即可。
我要说的重点是,在 Eclipse中打开 Server视图,双击我们刚才添加的Tomcat,打开它的设置属性的页面。
在Server Locations处有三个单选按钮,如果你想要你在 Tomcat 的目录下的设置生效,就必须选择第二项,它表示 Eclipse 直接使用 Tomcat 及它的配置,而不是使用 Eclipse workspace 中的设置。(好比我之前往 Eclipse 中导入同步于SVN 的工程,一不小心选择了 Copy Projects to workspace, 结果无论我改动了什么,SVN工程都没有变化,原因很简单,这就是原件和复印件的关系)。
从 Tomcat 7 升级到 Tomcat 8 遇到的问题,可以参考官网文档:http://tomcat.apache.org/migration-8.html#Web_application_resources
通过上面的方法,这些警告已经消除了。
- Eclipse Tomcat 8 警告: Unable to add the resource at [***] to the cache...
- Unable to add the resource at [*/*/*.jar] to the cache because there
- Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- tomcat 运行jenkins启动时日志警告org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- tomcat9启动中提示 org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- tomcat9启动中提示 org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- error: Resource at touchFocusParameter appears in overlay but not in the base package; use to add.
- Tomcat Unable to open the service 'Tomcat*'
- maven: Unable to add module to the current project
- unable to open the service 'tomcat'
- Eclipse Benchmark 基准测试 报错:ERROR: Unable to find the resource: /META-INF/BenchmarkList
- The Eclipse executable launcher was unable to 。。。。
- file_get_content警告Unable to find the wrapper "https"
- tomcat超时启动Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the serve
- Tomcat: Unable to open the service “tomcat”的解决办法
- Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. If the server requires
- vim操作笔记
- 【网易笔试】小朋友排列为一个队伍
- ES6的let命令(二)
- 用于Unity上的CSV文件读取工具,一句代码缓存、提取
- UDP与TCP区别
- Eclipse Tomcat 8 警告: Unable to add the resource at [***] to the cache...
- Caffe中的layer
- C语言程序设计(5)
- ios简单制作淘抢购活动 滑动效果
- 这是一个文档 我测试一下
- CSS3便利贴色号
- pipy国内镜像
- tensorflow学习笔记(四十):tensorflow语音识别 及 python音频处理库
- PHP环境(apache,PHP,Mysql)详细配置方法