title: How to clean tomcat cache?
body: <p>I use code like:</p>
  
  <pre><code>  Thread currentThread=Thread.currentThread();
    ClassLoader classLoader=currentThread.getContextClassLoader();
    InputStream configFile=classLoader.getResourceAsStream("config.xml");
  </code></pre>
  
  <p>But this code starts to work after 2 - 3 hours. I didn't nothing - only restart, clean, deploy, etc.</p>
  
  <p>I suppose that old jar/class that cannot find file config.xml was in some cache - may be in cache of tomcat or in cache of OS/VM. Does it possible?
  Thanks.</p>