| 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: 14475
|
|
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.
|
 |
 |
|
|
subject: java.util.MissingResourceException: Can't find bundle for base name
|
|
|