Hello,
I am reading a property file from my
java application. The code works fine fine Under Windows 2000, WebSphere studio. But when I deploy it on
tomcat running under German Linux it fails to load the property file.
Properties prop = new Properties();
Locale locale = new Locale("de","DE");
ResourceBundle bundle = ResourceBundle.getBundle("myproperties",locale);
Enumeration enum = bundle.getKeys();
String key = null;
while( enum.hasMoreElements() ) {
key = (String)enum.nextElement();
prop.put(key, bundle.getObject( key ));
}
It throws Exception java.util.MissingResourceException : Can't find bundle for base name myproperties.
My property file resides in document root of the web application.
Any help is appreciated.
T
hanks in advance,
Regards,
Bhiku.