1 Reply Latest reply on Feb 21, 2003 5:54 AM by Bram Doornbos

    Locating resource from jarfile fails...

    Bram Doornbos Newbie


      I try to locate a resource that exists in the root of a jarfile.
      Therefor I use the following code:

      InputStream istrm = ClassLoader.getSystemResourceAsStream("config.xml");

      This does work in other applications, but when I use the jarfile in
      jboss 3.0.4 the resource is not found and istrm == null.

      Does the classloader of jboss locate resourcefiles in jars correctly?
      Or do I have to use another strategy?