Then how come Tomcat alone can respect the UTC enablement in
/etc/sysconfig/clock?
That is a good question, and not the same as what I observed on my system.
I guess maybe try removing the timezone line from that file and restart Tomcat
to see if the clock file is even a player here. This
Also, there was some enlightening information about how the JVM decides
which timezone to use here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6456628
I did not read the java source to verify the description there is
accurate, but none the less, the description was helpful to me.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Raghu,
On 10/15/2009 1:33 AM, raghu gs wrote:
My question is, when i put a normal java code to display the time and
timezone of the system, it just displays the timezone in IST without any
problem.
So, you still won't actually try to figure out
Tomcat is not running under a security manager.
So that policy entry may need to be exists, i understood now.
I have tried stopping our web applications via tomcat-manager and restarted
important web applications alone.
But still timezone didn't reset to system timezone.
Wouldn't stopping
I'm not sure if it will help with your particular version of java/linux
but I had a similar problem with my java/linux and found that in my case
the file /etc/sysconfig/clock was one of the places the JVM looked for a
timezone. Setting environment variables and options had no effect, the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Raghu,
On 10/14/2009 11:44 AM, raghu gs wrote:
Tomcat is not running under a security manager.
So that policy entry may need to be exists, i understood now.
Yes.
I have tried stopping our web applications via tomcat-manager and restarted
Hi Tim
Your suggestion seems interesting to some extent.
One clue i got now is UTC is enabled in /etc/sysconfig/clock file.
Being UTC is enabled is naturally equals to setting GMT as timezone.
Please correct me if i am wrong.
My question is, when i put a normal java code to display the time and
java.util.PropertyPermission user.timezone, write; line not there in
catalina.policy file.
Should this line not need to be present for granting the pernission?
What is the code for restricting the timezone overide permission in
catalina.policy file?
Moreover it was misundstanding between our
-Original Message-
From: raghu gs [mailto:iamra...@gmail.com]
Sent: Monday, October 12, 2009 5:18 AM
To: Tomcat Users List
Subject: Re: Tomcat 6.0.20 always works in GMT timezone even after
forcing it to use Asia/Calcutta by multiple methods.
java.util.PropertyPermission
Hi Chris
Here is the output for each of your procedure.
java TimeZoneTest output
user.timezone=
TimeZone.getDefault=sun.util.calendar.ZoneInfo[id=Asia/Calcutta,offset=1980,dstSavings=0,useDaylight=false,transitions=6,lastRule=null]
TZ=Asia/Calcutta java TimeZoneTest output
user.timezone=
2009/10/11 raghu gs iamra...@gmail.com:
One vital information i forgot to provide previously is, Tomcat timezone is
correct till Tomcat server startup in Ns message.
I remember, that I have read once in this list, that in someone's
configuration there was a web application that changed system
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Konstantin,
On 10/11/2009 6:24 AM, Konstantin Kolinko wrote:
I remember, that I have read once in this list, that in someone's
configuration there was a web application that changed system
timezone. That is, it called TimeZone.setDefault(..)
and
Hi
java.util.PropertyPermission user.timezone, write; line not there in
catalina.policy file.
Should this line not need to be present for granting the pernission?
We have already used the TimeZone.set function in our codebase to set
Asia/India as timezone.
I haven't done a full code search yet
2009/10/12 raghu gs iamra...@gmail.com:
But our engineers where is that this a Kernal and Tomcat issue.
Is there possibilty for that?
There are a large number of people using Tomcat who don't see this
issue and are in non-GMT timezones - including a fairly large number
in India, if the email
Yeah, we have couple of other servers running the same codebase.
We don't experience such an issue in those servers,
Anyway i'll get back to here once i got concrete information from our
developers.
Regards
On Mon, Oct 12, 2009 at 11:17 AM, Peter Crowther
peter.crowt...@melandra.com wrote:
Hello Everybody
I have installed Tomcat 6.0.20 using binary tarball in JDK 1.6.0.16 running
CentOS 5,3 x64 Server.
We have tried the following methods to force tomcat to use the Asia/Calcutta
as timezone.
1) Created an environment variable called TZ and assigned it correct
timezone.
Output of
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Raghu,
On 10/10/2009 4:04 AM, raghu gs wrote:
I have installed Tomcat 6.0.20 using binary tarball in JDK 1.6.0.16 running
CentOS 5,3 x64 Server.
Use this class for reference:
import java.util.TimeZone;
public class TimeZoneTest
{
public
17 matches
Mail list logo