D
ddog
I'm trying to read a properties file within a web-app under JBoss. The
setup follows:
Location of properties file in war file is:
WEB-INF/classes
// code to load properties file is:
ResourceBundle props =
ResourceBundle.getBundle("idmwswrapper.properties",
Locale.getDefault(), this.getClass().getClassLoader());
ERROR READING PROPERTIES FILE.... Can't find bundle for base name
idmwswrapper.properties, locale en_US
2007-08-03 14:52:08,734 INFO [STDOUT]
java.util.MissingResourceException: Can't find bundle for base name
idmwswrapper.properties, locale en_US
Anyone have any ideas? I've tried other methods of reading the file,
but it cannot be 'found'. Doc say
props file must be in classpath. WEB-INF/classes is in the classpath.
Any help greatly appreciated!
setup follows:
Location of properties file in war file is:
WEB-INF/classes
// code to load properties file is:
ResourceBundle props =
ResourceBundle.getBundle("idmwswrapper.properties",
Locale.getDefault(), this.getClass().getClassLoader());
ERROR READING PROPERTIES FILE.... Can't find bundle for base name
idmwswrapper.properties, locale en_US
2007-08-03 14:52:08,734 INFO [STDOUT]
java.util.MissingResourceException: Can't find bundle for base name
idmwswrapper.properties, locale en_US
Anyone have any ideas? I've tried other methods of reading the file,
but it cannot be 'found'. Doc say
props file must be in classpath. WEB-INF/classes is in the classpath.
Any help greatly appreciated!