|
From: Thorsten L. <kar...@ya...> - 2008-06-05 09:39:09
|
Thanks for your suggestions! Indeed, it seems to be a general Java problem - should have checked that beforehand, but I had good reason for assuming that my other apps were running fine. But in fact it appears they are not. I've had a bit more of a web search on it and it seems that this is a general Java problem on Windows 2003 Server after installing a timezone patch (see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6501839). So this was obviously the wrong user list to post to, but thanks to you and Leif for your help anyways! And yes, you are right, starting the JRE with "-Duser.timezone=Europe/Berlin" solves the problem (although not in a very general way). ----- Ursprüngliche Mail ---- Von: Mikael Ståldal <mik...@un...> An: wra...@li... Gesendet: Donnerstag, den 5. Juni 2008, 10:02:45 Uhr Betreff: Re: [Wrapper-user] Wrapper starts java app with wrong time (time shift of exactly 2 hours) Thorsten Lampe skrev: > I've got some very strange behavior here. Running on a Windows 2003 Server, the service wrapper starts my java app using a domain user account. The extremely strange thing is that I'm absolutely positive that the wrapper is running at the correct system time while my java app's time is 2 hours behind that!!! > I can see this in the log files since every line logged by my app itself contains a time of, say 5:46.16 PM when the exact same line of output will appear in the wrapper's log as logged at time 7:46.16 PM, the correct system time as currently defined. Do you get the same problem when running a Java app without Wrapper? I have seen a similar problem on Linux, and it was a Java problem, not a Wrapper problem. The solution was to set the environment variable TZ to your timezone. The value "Europe/Berlin" should work for you if you are in Germany. Perhaps it will work on Windows as well. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user __________________________________________________________ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang. http://de.overview.mail.yahoo.com |