title: Tomcat 8 throwing - org.apache.catalina.webresources.Cache.getResource Unable to add the resource
body: <p>I have just upgraded Tomcat from version 7.0.52 to 8.0.14.</p>
  
  <p>I am getting this for lots of static image files:</p>
  
  <blockquote>
    <p><strong>org.apache.catalina.webresources.Cache.getResource</strong> Unable to add the
    resource at [/base/1325/WA6144-150x112.jpg] to the cache because there
    was insufficient free space available after evicting expired cache
    entries - consider increasing the maximum size of the cache</p>
  </blockquote>
  
  <p>I haven't specified any particular resource settings, and I didn't get this for 7.0.52.</p>
  
  <p>I have found mention of this happening at startup in a bug report that was supposedly fixed.  For me this is happening not at startup but constantly when the resource is requested.</p>
  
  <p>Anybody else having this issue?</p>
  
  <p>Trying to at least just disable the cache, but I cannot find an example of how to specify not to use the cache.  The attributes have gone from the context in Tomcat version 8. Have tried adding a resource but cannot get the config right.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Resource name="file" 
      cachingAllowed="false"
      className="org.apache.catalina.webresources.FileResourceSet"
  /&gt;  
  </code></pre>
  
  <p>Thanks.</p>