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
timezone of the system, it just displays the timezone in IST without any
problem.
clock command's output returns the time in IST timezone it self.
Then how come Tomcat alone can respect the UTC enablement in
/etc/sysconfig/clock?

Regards


On Wed, Oct 14, 2009 at 9:37 PM, Timothy J Schumacher <
tim.schumac...@colorado.edu> wrote:

> 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
> thing that worked for me was changing the clock file.  Check
> /etc/sysconfig/clock and see what it says, if there is a timezone set in
> there try removing it.  It took me quite a while to figure this out, going
> to the extreme of writing a play java program and running it with strace and
> then I saw that it opened the clock file...
> Good luck,
> -Tim
>
>
> raghu gs wrote:
>
>> 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 offending web applications enough for the timezone to
>> use
>> system configuration?
>>
>> Is it possible to restrict just timezone over-riding permission from web
>> application instead of first listing what are all permissions that should
>> be
>> granted for a web application?
>>
>>
>>
>> On Mon, Oct 12, 2009 at 8:32 PM, George Sexton <geor...@mhsoftware.com
>> >wrote:
>>
>>
>>
>>>
>>>
>>>> -----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 "user.timezone", "write"; line not there
>>>> in
>>>> catalina.policy file.
>>>> Should this line not need to be present for granting the pernission?
>>>>
>>>>
>>> The reference to catalina.policy only applies if you are running under a
>>> security manager. Are you running under a security manager?
>>>
>>>
>>>
>>>> What is the code for restricting the timezone overide permission in
>>>> catalina.policy file?
>>>> Moreover it was misundstanding between our developers,
>>>> Nobody said that kernel tomcat mismatch might be the cause of the
>>>> problem.
>>>> TZData is also up-to-date.
>>>>
>>>> Regards
>>>>
>>>>
>>>>
>>> George Sexton
>>> MH Software, Inc.
>>> http://www.mhsoftware.com/
>>> Voice: 303 438 9585
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>>
>>>
>>>
>>>
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Reply via email to