Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error - Can't find bundle

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I'm getting below mentioned error while using resource bundle

java.util.MissingResourceException: Can't find bundle for base name report, locale en_US

Here is the code
ResourceBundle rb = ResourceBundle.getBundle("report");

I have report.properties file in the WEB-INF folder in the war file. Is this the incorrect folder to have properties file ?

Really appreciate any suggestions.

Thanks
 
Santhosh Reddy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try keeping the file in classes folder
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic