File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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
 
Consider Paul's rocket mass heater.
 
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