wood burning stoves 2.0*
The moose likes Java in General and the fly likes Log4j time problem in Solaris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Log4j time problem in Solaris " Watch "Log4j time problem in Solaris " New topic
Author

Log4j time problem in Solaris

Muthu Prasad Venkatraman
Greenhorn

Joined: Apr 02, 2007
Posts: 3
Hi,

I have different behavior of log4j on windows and Solaris.

I get wrong time entry in log file for march month in Solaris machine.

i.e if the console displays date & time as Thu Mar 29 06:29:39 EDT 2007
then i get [29 Mar 2007 05:29]

but i gives me correct time for all other months & in windows.

Why it occurs. please give me solution for this

Thanks in advance
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Could this be something to do with the DST change? Have you patched the JDK on both systems?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Muthu Prasad Venkatraman
Greenhorn

Joined: Apr 02, 2007
Posts: 3
Thanks paul,
your reply really helped me a lot. actually i had solaris with jre 1.2 & i tried the same code in jre 1.4 it is working correctly.
Thanks once again
Prasad

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Log4j time problem in Solaris
 
Similar Threads
struts-config.xml giving "cannot resolve class/symbol" errors
Log4j time problem in Solaris
Solaris Date
Simple Hibernate Help (Im Noob)
org.apache.jasper.JasperException: java.lang.NullPointerException: Module 'null' not found.