If you have just upgraded Tomcat from version 7 to 8 and you are getting this error
org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/myapp/img/test.jpg] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
The solution is to edit
$CATALINA_BASE/conf/context.xml
add block below before </Context>
<Resources cachingAllowed="true" cacheMaxSize="100000" />
For more information: http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html
Thanks for this post!
ReplyDelete