0 Replies Latest reply on Oct 5, 2002 12:33 AM by Michael Fortin

    FileNotFoundException with xml config file

    Michael Fortin Newbie

      Hello,
      I have an xml config file in my project at the root level of my .ear and jboss returns the wrong url when I try to retrieve it. I get:
      java.io.FileNotFoundException: scheduler.xml not found at: jar:file:/usr/java/jboss-3.0.1/server/default/tmp/deploy/server/default/deploy/artstopia.ear/68.artstopia.ear!/scheduler.xml

      there is no xml file in that location

      I'm trying to retrieve it from within a servlet in a war with:
      ClassLoader cl = ProcessScheduler.class.getClassLoader();
      URL url = cl.getResource(DEFAULT_FILE);

      This works with .properties files why not with xml files?
      How do I get the xml file?


      thanks,
      Michael