title: Thread.currentThread().getContextClassLoader().getResourceAsStream() returns null
body: <p>I have following code block in my application;</p>
  
  <pre><code>InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(FilePath);
  </code></pre>
  
  <p>Here 'FilePath' is an absolute path of the file.</p>
  
  <p>Above code works fine in linux and in windows when i run the application in normal mode.(ie: in command prompt)
  But this is NOT working, when I run the application as a windows service. I get input stream as 'null'.</p>
  
  <p>Anyone encountered such issue before? I could not find any information regarding this other than  java classloaders . Here we use "ContextClassLoader", which is the right classloader to be used..</p>
  
  <p>Any clue on this? </p>