aspose file tools*
The moose likes JBoss/WildFly and the fly likes not able to locate message.properties using ResourceBundle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "not able to locate message.properties using ResourceBundle " Watch "not able to locate message.properties using ResourceBundle " New topic
Author

not able to locate message.properties using ResourceBundle

maha laxmi
Ranch Hand

Joined: Sep 23, 2005
Posts: 68
i am using jboss-4.0.2;my requiremnet is to place message.properties in default/lib directory;

how to set classpath for this?

i am reading this properties file in ejb using

ResourceBundle bundle = ResourceBundle.getBundle("message");

i am not able to locate this file??


java.util.MissingResourceException:Can't find bundle for base name message, locale en_US
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


how to set classpath for this?

If its in default/lib, it is on the classpath. You don't have to set anything else. Is there a file called massage_en_US.properties in the lib directory?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: not able to locate message.properties using ResourceBundle