0 Replies Latest reply on Aug 4, 2004 7:53 AM by Armenio Pinto

    Problems loading properties file

    Armenio Pinto Newbie

      Hi there,

      I'm having some problems with my application in JBoss 3.0.7 that I don't have with JBoss 3.2.3. There are 3 EARs, each with an etc/ directory in the root, and with a properties file inside the directory. Each EAR was beans that access this property files. In 3.2.3, the beans load the files normally with the following code:


      InputStream input=this.getClass().getClassLoader().getResourceAsStream(filepath);


      ... where filepath is something like "etc/atm.properties". But in 3.0.7 I get a FileNotFoundException. Can anyone please help me, and tell me what am I doing wrong? Thanks in advance,

      Arménio Pinto