• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic