Hello everybody,

I need your help to correct the following issue:
-timestamp in logs is one hour ahead than the server time.

I am using jboss-4.0.3SP1 and jdk1.5.0_10


In order to solve this problem I have tried almost everything that I could find about this on internet:
1) I have used the tzdupdate()
tzupdater version 1.3.40-b01
JRE time zone data version: tzdata2011h
Embedded time zone data version: tzdata2011h

2) copied the log4j.properties to WEB-INF/classes
/opt/jboss-4.0.3SP1/server/mcdp-std/deploy/axis2.war/WEB-INF/classes/log4j.properties

3) also I've checked to have the same log4j.jar

The log4j.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- ================================================== =================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ================================================== =================== -->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<!-- Default server.log file containing the error messages for all clients -->
<appender name="SERVER_LOG" class="org.jboss.logging.appender.RollingFileAppen der">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler "/>
<!-- Change this value before load test -->
<param name="Threshold" value="DEBUG"/>
<param name="File" value="${jboss.server.home.dir}/log/server.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="10MB"/>
<param name="maxBackupIndex" value="5"/>
<param name="bufferedIO" value="false"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{MM/dd HH:mm:ss,SSS} %-5p [%c] %t: %m%n"/>
</layout>
<!-- Exclude partition crap logged in cluster.log -->
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="org.jboss.ha"/>
<param name="AcceptOnMatch" value="false"/>
</filter>
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="org.jgroups"/>
<param name="AcceptOnMatch" value="false"/>
</filter>
</appender>

<!-- Clustering logging -->
<appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppen der">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler "/>
<!-- Change this value before load test -->
<param name="Threshold" value="INFO"/>
<param name="File" value="${jboss.server.home.dir}/log/cluster.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="1"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{MM/dd HH:mm:ss,SSS} (%t) %-5p [%c] %m%n"/>
</layout>
</appender>

and log4.properties is like this:

# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE

# Set the enterprise logger priority to FATAL
log4j.logger.org.apache.axis2.enterprise=FATAL
log4j.logger.de.hunsicker.jalopy.io=FATAL
log4j.logger.httpclient.wire.header=FATAL
log4j.logger.org.apache.commons.httpclient=FATAL

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleApp ender
log4j.appender.CONSOLE.layout=org.apache.log4j.Pat ternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%p [%d{ISO8601}] %c{2} %x - %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppend er
log4j.appender.LOGFILE.File=axis2.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.Pat ternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%p [%d{ISO8601}] %c{2} %x - %m%n