Hello, 

I'm just starting to use Felix with our media application, switching
over from Oscar. Things are working well, but I'm having some issues
with resource loading. Whenever I attempt to load a resource bundle:

ResourceBundle bundle =
ResourceBundle.getBundle("org/simplecenter/localization");
String str = bundle.getString("WindowTitle");
System.out.println("String: " + str);

I get the following warning printed to the System output:

ERROR: ****
****
Class 'org/simplecenter/localization' was not found. Bundle 6 does not
import package '', nor is the package exported by any other bundle or
available from the system class loader.
****
****
ERROR: ****
****
Class 'org/simplecenter/localization_en' was not found. Bundle 6 does
not import package '', nor is the package exported by any other bundle
or available from the system class loader.
****
****

Everything works fine otherwise, but we load tons of strings, and each
time we get a handful of these printed out. I can track the problem to
org.apache.felix.framework.searchpolicy.ContentClassLoader.getResource()
:

m_contentLoader.getLogger().log(
                Logger.LOG_WARNING,
                ex.getMessage(),
                ex);

Should this really be logging? If so, how do I prevent all of these
messages?

Jon

Reply via email to