tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Clearing ResourceBundle cache
Date Mon, 02 Jun 2014 21:36:09 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jan,

On 6/2/14, 4:35 PM, Jan Tosovsky wrote:
> Dear All,
> 
> in my Java webapp I switched to UTF-8 encoded properties files.
> 
> I've implemented a custom ResourceBundle 
> http://stackoverflow.com/questions/3645491/i18n-with-utf-8-encoded-propertie
>
> 
s-files-in-jsf-2-0-appliaction
> 
> but my strings are still displayed incorrectly. The original ASCII
> ones seem to be somehow cached.

Did you shut down and restart your JVM? If you did, then caching is
not your problem. Did you copy the code into your deployment?

I'm curious why you bothered to write your own ResourceBundle instead
of just using native2ascii.

> It is discussed in this thread 
> http://stackoverflow.com/questions/9819999/how-to-clear-resourcebundle-cache
>
>  but I haven't succeed yet. I run this app on Win7/JDK8/tomcat
> 8.0.3/Netbeans IDE 8
> 
> I do not need to clear this cache programatically. Is there any
> manual way to force tomcat/mojarra to use newer resource version?

Redeploy/reload the web application?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTjO5GAAoJEBzwKT+lPKRYn7wP+QGE0+syroX01WzEfRxNfFO3
hz7o4w+MfTYF1KyiaLXrs1++uqEkkEkz/w9ILWnAclGrq2dT/PNaWpw0tWlJk6YX
tsaZJIbhmcF6hTq4pfN78C9xjYtmurSrhDVIwNwI8vZWFc+gSWQdH2thAQgVVb58
onBcqh50nGVhnaxtnFhLtuC1ADCH22RD+lP5ea6CxXoxoS+UeFSh6sNk2BXjcQPk
X3nYNZBbxm8TpEp2io4lMLpqdUGtz+tZPlD3JYGbdVdZSRoY+eBmbtapBzZET5b0
kGUxUhaoH7PQUlr08XCPlTYVbN2pHYS6+fm2FiQNqzSH0rW1vvY3FLsz5jhhcnYA
fonA5AMwGP+XCzszXUQvxu1lEBRYu5w51NhEYeBO2prrE873XFYZ3ikuY005+7H4
qzzBZczmodo/QMkMRCNvxiuAB/vJkneGW8xPjP9k+kSeXHfttNJn4GHcyRt9xIR9
iQ6/DdoZdlEha/6LTlVNAY7x/3iXOEb5Vg+ANouw94GlDyEHJk7LnDQyNccFNs3u
tHue/+cwW3rZjLTqle+v1VGRvLc9agMa92Wjt2edMFg82oMTnunQWN806i4il00Q
BWp6iLCmmcVcfLLgq/IB0zFQKBLuSO6bHHBD7tDB37HIEaSyNNTx8djsHJVoc4XE
u8RLiHc3xOvI7ck5+SA1
=vYeK
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message