GetResourceAsStream returning null, file exists
<p>I know there are many topics out there for this but I have seem to have tried everything.  I can put my file name in there and it finds it if there is a src folder,</p>

<pre><code>InputStream is = context.class.getClassLoader().getResourceAsStream("file.props");
</code></pre>

<p>but when we put it on an apache server, a src folder is not automatically created, so it isn't finding it.  I have tried placing it directly in the web-inf folder and </p>

<pre><code>InputStream is = context.class.getClassLoader().getResourceAsStream("/WEB-INF" + File.separator + "file.props");
</code></pre>

<p>But this is always returned as null.  What is the reason for this?  The file exists there, why can't it find it?</p>