Calling
factory.createCache("/META-INF/jboss-cache.xml");
would say that it can't find the file, and when I come to XmlConfigurationParser.getAsInputStreamFromClassLoader(String filename)
the
Thread.currentThread().getContextClassLoader().getResourceAsStream(filename);
call returns null indeed, but
getClass().getResourceAsStream(filename);
opens the stream OK.
Is it so by design, or perhaps the getAsInputStreamFromClassLoader() method should check both classloaders?