cannot read a file from META-INF
<p>I have big big issue doing something really really stupid. That is to say open a strem to an resource file in my META-INF folder. I am working on a jar tool and on doing this:</p>

<pre><code>InputStream schemaIS = this.getClass().getClassLoader().getResourceAsStream("/META-INF/schema.xsd");
</code></pre>

<p>I simply get a null! The project is build using maven and I promise you the xsd file ends up in the META-INF folder. It's there I can see it! but still it doesnt wanna work.  </p>

<p>What I don't understand is the theory behind it? how do the ClassLoader execute the lookup in the file system? How do I get my hands on the file?</p>

<p>thanks</p>
