users@glassfish.java.net

Glassfish 3.0.1 JVM Locale switch

From: Fabrice BUQUET <fabrice.buquet_at_gmail.com>
Date: Tue, 21 Sep 2010 21:22:15 +0200

Hi,

I've got a problem with locales in Glassfish server.
I'm running GF 3.0.1, JDK 1.6.0_20-b02 on Linux Ubuntu 09.04 server with all
locale set to FR:

LANG=fr_FR.utf8
LC_CTYPE="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LC_COLLATE="fr_FR.utf8"
LC_MONETARY="fr_FR.utf8"
LC_MESSAGES="fr_FR.utf8"
LC_PAPER="fr_FR.utf8"
LC_NAME="fr_FR.utf8"
LC_ADDRESS="fr_FR.utf8"
LC_TELEPHONE="fr_FR.utf8"
LC_MEASUREMENT="fr_FR.utf8"
LC_IDENTIFICATION="fr_FR.utf8"
LC_ALL=

When I start GF, the "JVM report" in the "General information" page reports
fr locales:

user.country = FR
user.language = fr
user.timezone = Europe/Paris

But after some time (a variable period...), locale switch to EN and I've got
a hibernate error telling me "not a valid month" because all my users input
dates in a french format (dd/mm/yyyy).
At this point, the only solution is to restart GF and all comes back to FR.

Did someone got the same problemor have any idea ?

-- 
BUQUET Fabrice