• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

not able to locate message.properties using ResourceBundle

 
maha laxmi
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic