1 Reply Latest reply on Dec 22, 2004 3:35 AM by Phillip Kruger

    ResourceBundle - Cant Read properties Files

    AndrewGoedhart Newbie

      I'm deploying MyApp.WAR in JBoss 3.23 with the JBOSS_CLASSPATH in my run.bat set to look at the location of my propfiles. MyApp uses java.util.ResourceBundle to read the propfiles.

      However for some obscure reason it reads only my log4j.properties file (see debug below) and not my config.properties, constants.properties and jndi.properties as specified in myapp-cfg.properties file.

      ------------ Begin myapp-cfg.properties listing -------
      ------------ End myapp-cfg.properties listing -------

      Some of my debug System.out.println lines:

      Key = log4j.appender.stdout.layout. value = org.apache.log4j.PatternLayout
      Key = log4j.appender.stdout.File. value = c:\jboss-3.2.3\server\default\log\MyApp_System.out
      Key = log4j.appender.stdout.MaxFileSize. value = 10MB
      Key = log4j.appender.stdout.layout.ConversionPattern. value = %5p [%t] (%F:%L) - %m%n
      Key = log4j.appender.stdout. value = org.apache.log4j.RollingFileAppender
      Key = log4j.rootCategory. value = debug,stdout
      Key = log4j.appender.stdout.MaxBackupIndex. value = 5

      ResourceBundle = java.util.PropertyResourceBundle@d47880

      Some people suggest that ResourceBundle Caching occurs. How, where ?