This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error - Can't find bundle  RSS feed

 
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
Boost this thread!