This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSF and the fly likes java.util.MissingResourceException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "java.util.MissingResourceException" Watch "java.util.MissingResourceException" New topic


Mattias Andersson

Joined: Nov 17, 2010
Posts: 20
I'm using Eclipse 3.6 and TomCat 7.0.16.
I have two languages implemented in JSF2/ICEFaces.

This is how my faces-config.xml looks:

In the package se.comlink.internationalizatin.resources there are two properties files namely:

It seems to be working quite good.
But when I submit a form I get the "java.util.MissingResourceException: Can't find bundle for base name i18n.messages, locale sv"
This error ONLY occurs when browser language is set to sv (swedish).
When language is set to en (english) the error NEVER occurs.

So, any of you have any good ideas?


It's better to be approximately right than exactly wrong.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17260

This has to do with MessageBundles and I18N. The file it's looking for needs to be named something like "/WEB-INF/classes/se/comlink/internationalization/resources/messages/, if my memory is any good.

You should be able to find the exact naming requirements for bundle property files in the JavaDocs for ResourceBundles, though, which is a better place to search than the decrepit halls of my recollection.

An IDE is no substitute for an Intelligent Developer.
Mattias Andersson

Joined: Nov 17, 2010
Posts: 20
I will look into it.

But the real strange thing is that my i18n messages are loading as it should when my pages initialized are loaded.
This error I've got only occurs when I submit an ajaxafied form (single submit).
Well... that's what I think anyway
I agree. Here's the link:
subject: java.util.MissingResourceException
It's not a secret anymore!