File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes java.util.MissingResourceException: Can't find bundle for base name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "java.util.MissingResourceException: Can Watch "java.util.MissingResourceException: Can New topic
Author

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

kool smart
Greenhorn

Joined: Jan 05, 2012
Posts: 1
Hi,

I am trying to call from a JSF command button --> action to call a method on controller java class which in turns call a model java class.

The model java class has a to create an instance of a Final Framework UVW Class in which an object is passed the instance is created by getInstance() method which is public which gets a string from a resource bundle.

private static ResourceBundle resourceBundle = ResourceBundle.getBundle("com.xyz.abcd.properties.Messages");
private static final Logger logger = Logger
.getLogger(UVW.class.toString());
// in side a method

public static final UVW getInstance()
throws Exception {

logger.info(MessageFormat.format(
resourceBundle.getString("LMNOP01"), "getInstance"));


}

I get the following error on my UI JSP page

root cause

java.util.MissingResourceException: Can't find bundle for base name com.xyz.abcd.properties.Messages, locale en_US
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)
java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
java.util.ResourceBundle.getBundle(ResourceBundle.java:715)

Please suggest as i might be missing something....
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16305
    
  21

You're missing something all right. You're neither being "kool" nor "smart".

We're a very laid-back bunch around here, but the one thing we do insist on is that you use your real name and not some sort of "handle" or alias. If you missed the details, check here: http://www.javaranch.com/name.jsp . The sooner you fix your display name, the sooner you'll get your question answered.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.util.MissingResourceException: Can't find bundle for base name