[PJUG Javamail] I'm having a weird problem with log4j logs w/Tomcat
Rob Tanner
rtanner at linfield.edu
Thu Aug 7 17:04:08 EDT 2008
Eric,
I don't get it. Both systems are running Fedora Core. They both are
properly configured for US/Pacific and they both are running the same
version of the Java runtime. So how one instance can have the right
time and another the wrong time is a mystery. But nevertheless, your
suggestion solved the problem even though the mystery remains. Thank you!
-- Rob
On 8/7/08 7:27 AM, Eric Zimmerman wrote:
> Hey Rob,
>
> Had a very similar problem. It ended up being the JVM was using the
> wrong timezone because of some Linux server configuration issue. We
> solved it pretty quickly by adding this system property to startup:
> -Duser.timezone=US/Pacific
>
> Hope that helps,
>
> Eric
>
> Rob Tanner wrote:
>> Hi,
>>
>> Here's a strange one. On my production server my applications log
>> timestamps are off by one hour (as if running on standard time) while
>> the system clock and syslog logs are fine. The timestamps on myy
>> development machine, on the other hand, are all correct.
>>
>> Both machines are running Tomcat 5.5.23 and log4j 1.2.15. And the
>> log4j.properties files are identical between the production and my
>> development machine.
>>
>> Any idea what might be going on?
>>
>> Thanks,
>>
>> Rob Tanner
>> Linfield College
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Web Site - http://www.pjug.org/
>> Javamail mailing list
>> Javamail at pjug.org
>> http://www.pjug.org/mailman/listinfo/javamail
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20080807/b83b49f0/attachment.html
More information about the Javamail
mailing list