title: Reading a resource in a war file which is not under classes dir
body: <p>I am having a web application having following structure:</p>
  
  <pre><code>WEB-INF
   |-classes
      -- This is empty
   |-templates
           |-abc.properties
           |- xyz.properties    
   |-lib
       |-internal.jar (all classes of our application)
       |- other jars
  </code></pre>
  
  <p>These are bundled as a war</p>
  
  <p>I want to read properties in the the files present in WEB-INF/templates.
  NOTE: Above operation needs to be done from one of the class present in internal.jar. Basically they are on classpath</p>
  
  <p>I tried following to get the resources but it is not able to search it.
  {code}
  1. </p>
  
  <pre><code>final InputStream inputStream = FileTemplateDaoImpl.class.getClassLoader().getResourceAsStream(resourcePath)
  {/code}
  where i tried following as resource path:
   templates/abc.properties
   /WEB-INF/templates/abc.properties
  </code></pre>