3 Replies Latest reply on Dec 23, 2009 5:56 AM by jaikiran pai

    Cannot read properties file after JBoss Republish

    Katja Koltsova Newbie
      Hello everyone,

      I have an EAR Application running on JBoss 5 AS. In one of the Beans I want to read data from properties file, that is stored in META-INF folder.

      URL url = this.getClass().getClassLoader().getResource("META-INF/bean.properties");
      System.out.println("URL FROM BEAN: " + url);

      After initial JBoss start works everything fine, but after republish ClassLoader.getResource(..) retrieves null. What does happen after republish? The properties file has not been moved or altered.

      How can I fix that? Does have anyone an idea?

      Thanks in advance.
      myklynysh