Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Resource Bundle

 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have deployed a web app and 'mypp.properties' file is in myproject/WEB-INF/classes directory.

Property file ia part of the jar files and is deplpyed with it.

I am getting the error:

java.util.MissingResourceException: Can't find bundle for base name myapp.properties

Properties file is very much in the classpath(WEB-INF/classes)

Any ideas why is this happening ??

Regards
 
rahul khanna
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for reading this ..
I have fixed it now ..

I had
ResourceBundle resource = null;
resource = ResourceBundle.getBundle(myapp.properties);
it should be..
resource = ResourceBundle.getBundle(myapp);

properties file is automatically appended by java..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!