I have an xml file which I want to load like this
InputStream in = getClass().getClassLoader().getResourceAsStream("META-INF/model.xml"); InputSource inputSource = new InputSource(in);
What version of JBossAS?
Also, where is META-INF located - in a JAR, a WAR, and EAR?
Also, try this instead:
in = Thread.currentThread().getContextClassLoader().getResourceAsStream(...);