Win a copy of Python Continuous Integration and Delivery this week in the Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

WARNING: Unable to add the resource at [/WEB-INF/classes/] to the cache for web application  RSS feed

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have be looking at this issue on and off for the past day and need some help. This is not a show stopper, just annoying.

I'm developing a web app using tomcat 8.0.50 and Eclipse oxygen. Eclipse is giving me the error message:



I get numerous error messages like the one above and I would like to turn off the caching, or enlarge the cache area to a large enough space that all the caching can be handled.

I looked at https://serverfault.com/questions/644415/tomcat-8-org-apache-catalina-webresources-cache-getresource and added:



to /usr/share/apache-tomcat-8.0.50/conf/context.xml.

Can someone help me with turning off the cache? Or enlarging it to handle the extra caching?
 
Sheriff
Posts: 5742
148
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking here, I believe the answer is to add this:

   <Resources cacheMaxSize="10240" />

to $CATALINA_BASE/conf/context.xml within the Context block. 10240 is the default, so add something larger than that.
 
Jim J Anderson
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm sorry to take so long to respond, but that worked. Thank you!!

Is there a may to make this issue as 'resolved'?
 
Knute Snortum
Sheriff
Posts: 5742
148
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a circle with a check mark in it, below the "Post Reply" button?  I believe that's "Request Topic Resolved," but you can also just ask a moderator to do it, so I'll do it!

I'm glad the information helped.
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Become a Java guru with IntelliJ IDEA
https://www.jetbrains.com/idea/
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!