This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
How to declare multiple message bundles in Faces-config.xml
Regarding ListResourceBundle
Tomcat 6 problem with ResourceBundle using JSTL
To: Gregg Bolinger (Where Does This Snippet Go?)
message resource bundle