欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Unable to add the resource at [*/*/*.jar] to the cache because there

程序员文章站 2022-06-05 14:22:08
...
找到tomcat的conf/context.xml配置文件,在context里面添加如下配置:

<Resources cachingAllowed="false"/>

警告: Unable to add the resource at [/WEB-INF/lib/woodstox-core-asl-4.4.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:46:56 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/wsdl4j-1.6.3.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:46:56 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xmlschema-core-2.1.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:46:56 下午 org.apache.catalina.webresources.Cache backgroundProcess
信息: The background cache eviction process was unable to free [10] percent of the cache for Context [/dataSelect] - consider increasing the maximum size of the cache. After eviction approximately [10,140] KB of data remained in the cache.
十二月 18, 2017 3:47:07 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/woodstox-core-asl-4.4.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:47:07 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/wsdl4j-1.6.3.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
十二月 18, 2017 3:47:07 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xmlschema-core-2.1.0.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 8 时 出现了此错误,tomcat控制台一直出现这些信息,解决办法

第一种:

找到tomcat的conf/context.xml配置文件,在context里面添加如下配置:
<Resources cachingAllowed="true" cacheMaxSize="100000" />

第二种

找到tomcat的conf/context.xml配置文件,在context里面添加如下配置:

<Resources cachingAllowed="false"/>

注: 

     如果context.xml文件内容修改完毕,在启动eclipse后自动恢复,那么久需要在eclipse的一个项目Servers中,找到你的tomcat,打开有各种配置文件,在这里改,才会在使用eclipse启动tomcat后不会自动恢复