Where is the right place and name for a locale bundle inside a servlet?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Miguel_Paraz
Posted On:   Wednesday, June 26, 2002 07:01 AM

I'm trying the Sun reference implementation of the JAXM provider: http://java.sun.com/xml/downloads/javaxmlpack.html I get this exception from the Tomcat logs: ----- Root Cause ----- java.util.MissingResourceException: Can't find bundle for base name com.sun.xml.messaging.jaxm.provider.LocalStrings, locale en_US at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694) at java.util.ResourceBundle.getBundle(ResourceBundle.java:511) at com.sun.xml.messaging.util.StringManager. (StringManager.java:59) Sun provided com/sun/xml/messaging/jaxm/provider/LocalS   More>>

I'm trying the Sun reference implementation of the JAXM provider: http://java.sun.com/xml/downloads/javaxmlpack.html

I get this exception from the Tomcat logs:



			
----- Root Cause -----
java.util.MissingResourceException: Can't find bundle for base name com.sun.xml.messaging.jaxm.provider.LocalStrings, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:804)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:694)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:511)
at com.sun.xml.messaging.util.StringManager. (StringManager.java:59)



Sun provided com/sun/xml/messaging/jaxm/provider/LocalStrings.properties
inside the supplied provider.jar.



The "Internationalization" section of the Java documentation and the linked
java.sun.com section on that topic suggested that the file be called
LocalStrings_en.properties.


I made a copy with that name, and LocalStrings_en_US.properties as well.
I created a WEB-INF/classes/com/sun/xml/messaging/jaxm/provider/ directory
and placed copies there. I also placed copies in WEB-INF/, and in the
Tomcat home directory.


None of those worked, and, I could not find an authoritative answer on the
Web on where to put the file. The Sun JAXM package does not have source, so I don't know what exactly is being called.

   <<Less
About | Sitemap | Contact