1 Reply Latest reply on Jun 8, 2007 5:45 AM by Manik Surtani

    2.x classloader

    Yuri Ushakov Newbie

      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?