You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Ansari, yaser" <ya...@inexsys.ch> on 2001/11/15 20:16:59 UTC

Problem with ResourceBumdles using tomcat4.0.1

I have a web application which provides support for 4 different languages. I
am using the resource bundle files for this. However tomcat4.0 is unable to
load these files and reports a  java.util.MissingResourceException: Can't
find resource for base name
> actionStrings, locale en_US . This problem doesnt occur with tomcat3.2.1 .
I place the property files in web-inf/classes dir.
Any solutions or workarounds.

Regards
Yaser


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: Problem with ResourceBumdles using tomcat4.0.1

Posted by Dan Silcox <ds...@chemconnect.com>.
We are using ResourceBundle to access .property files located in
CATALINA_HOME/classes.  They are not rolled into a jar.

-----Original Message-----
From: Jim Cheesman [mailto:jchees@msl.es]
Sent: Friday, November 16, 2001 3:04 AM
To: Tomcat Users List
Subject: Re: Problem with ResourceBumdles using tomcat4.0.1


At 08:16 PM 15/11/01, you wrote:
>I have a web application which provides support for 4 different languages.
I
>am using the resource bundle files for this. However tomcat4.0 is unable to
>load these files and reports a  java.util.MissingResourceException: Can't
>find resource for base name
> > actionStrings, locale en_US . This problem doesnt occur with tomcat3.2.1
.
>I place the property files in web-inf/classes dir.
>Any solutions or workarounds.


I found the only way to (routinely) get tomcat to find the resource bundles
was to stick them in a jar. (And hence in WEB-INF/lib)



Jim


--

                           *   Jim Cheesman   *
             Trabajo:
jchees@msl.es - (34)(91) 724 9200 x 2360
              Exaggeration is not
all it's cracked up to be.



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Problem with ResourceBumdles using tomcat4.0.1

Posted by Jim Cheesman <jc...@msl.es>.
At 08:16 PM 15/11/01, you wrote:
>I have a web application which provides support for 4 different languages. I
>am using the resource bundle files for this. However tomcat4.0 is unable to
>load these files and reports a  java.util.MissingResourceException: Can't
>find resource for base name
> > actionStrings, locale en_US . This problem doesnt occur with tomcat3.2.1 .
>I place the property files in web-inf/classes dir.
>Any solutions or workarounds.


I found the only way to (routinely) get tomcat to find the resource bundles 
was to stick them in a jar. (And hence in WEB-INF/lib)



Jim


--

                           *   Jim Cheesman   *
             Trabajo: 
jchees@msl.es - (34)(91) 724 9200 x 2360
              Exaggeration is not 
all it's cracked up to be.



--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>