This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: not able to locate message.properties using ResourceBundle
 
It's not a secret anymore!