[jboss-user] [JBossCache] - 2.x classloader

yuri.ushakov do-not-reply at jboss.com
Fri Jun 8 03:36:24 EDT 2007


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?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052423#4052423

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052423



More information about the jboss-user mailing list