You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mon Cab <fu...@yahoo.com> on 2009/08/14 05:38:36 UTC

Tomcat writing the wrong timestamp on compiled JSP's

When I edit a JSP, tomcat is compiling the JSP (both java and class files)  in the work directory with a timestamp exactly 1 hour greater than the current time.  

Eg. If I edit a jsp (after emptying the work directory), at 20:00, and then load the page from a client, class and java files will appear in the work directory with a timestamp of 21:00. 

I thought this might be a issue with the JVM time, however, when I look at the tomcat logs Tomcat is gorreclt logging time in the logs, exactly the same as the system time.  

Does anyone have any idea why this might be happening?  


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mon,

On 8/14/2009 1:18 AM, Mon Cab wrote:
> import java.util.*;
> public class DateTest {
>   public static void main(String[] args) {
>     System.out.println("Date = " + new Date());
>     System.out.println("Calendar = " + Calendar.getInstance());
>   }
> }

How about:

OutputStream out = new FileOutputStream("test.txt");
out.write("foobarbaz");
out.flush();
out.close();

Do you get a weird timestamp?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqFd+sACgkQ9CaO5/Lv0PBsXACcD6HeLZx6FvfOco21Vj6t92KM
IpgAn13IdgdOdLEGGqjzuI1bpw6wSgDN
=+MTH
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by André Warnier <aw...@ice-sa.com>.
Konstantin Kolinko wrote:

> 
> WinSCP documentation:
> http://winscp.net/eng/docs/timestamp
> 
> FAQ pages (they point back to documentation, though):
> http://winscp.net/eng/docs/faq_win_timestamp
> http://winscp.net/eng/docs/faq_timestamp
> 
Thanks.  I had not seen those, and they do seem reasonable.  Seems that 
the easiest way is to leave things as they are, and continue my mental 
adjustment.
:-)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Konstantin Kolinko <kn...@gmail.com>.
2009/8/14 André Warnier <aw...@ice-sa.com>:
>
> This is really off-topic here, being WinSCP more than anything else.
> But since I am also a heavy user of WinSCP, connecting to my various Apache
> and Tomcat machines, and I also see that same issue (some server sometimes
> showing me server files with a timestamp off by one hour more or less), and
> this has been puzzling me at some low level for a couple of years now, I'd
> also like to understand the issue fully while we have the chance.  This does
> not only concern JSP files by the way, but also logfiles etc..
> I thought it was just a bug of WinSCP. I've kind of learned to live with it,
> and to mentally adjust for the discrepancies, but it's still puzzling.
> My systems are using NTP to synchronise their time, workstations too. But I
> still see this discrepancy.  Care to repeat the explanation and the fix, or
> is it not a fix ?
>

WinSCP documentation:
http://winscp.net/eng/docs/timestamp

FAQ pages (they point back to documentation, though):
http://winscp.net/eng/docs/faq_win_timestamp
http://winscp.net/eng/docs/faq_timestamp

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by David Wall <d....@computer.org>.
Another issue to consider is that Tomcat runs a single instance of Java 
VM, but often runs multiple webapps.  If each webapp takes the approach 
that it can set the "default timezone" to its liking, you'll find that 
you get a mixed bag based on which webapp was the last to reload.  At 
least that's what we think we experienced since there are some oddities 
with dates and timezones in Java!

David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by André Warnier <aw...@ice-sa.com>.
Christopher Schultz wrote:
> 
> It sounds like WinSCP is assumes that everyone uses the same DST rules
> and applies them blindly. No amount of date synchronization can make
> WinSCP less stupid :)
> 
To the defense of WinSCP, it is not a stupid program in general, at the 
contrary. That is why this time discrepancy is a bit surprising.
I'll check the summer/winter stuff though, that sounds like a hint.  Any 
WinSCP user in the southern hemisphere care to run a quick cross-check ?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

On 8/14/2009 9:08 AM, André Warnier wrote:
> My systems are using NTP to synchronise their time, workstations too.
> But I still see this discrepancy.

I think Kees Jan was saying that NTP is just generally a good idea, not
that it has anything to do with using WinSCP.

It sounds like WinSCP is assumes that everyone uses the same DST rules
and applies them blindly. No amount of date synchronization can make
WinSCP less stupid :)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqFeLEACgkQ9CaO5/Lv0PDrPwCfaVqCMpO6y9wZLW4rwWcGHV8R
uQsAnRDRy9F0Jbssox1KnScSD7OkxUIE
=jNEh
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by André Warnier <aw...@ice-sa.com>.
Kees Jan Koster wrote:
> Dear Mon Cab,
> 
>> Yes.  That fixed it.  Thankyou Kees.
> 
> Glad to help.
> 
>> For some reason, the issue was with my  WinSCP client.
>>
>> When I edited a jsp and then looked at the jsp file timestamp on the 
>> remote machine with WinSCP it showed the timestamp as my the current 
>> time (local and remote system times are the same).  However, when I 
>> looked up the timestamp of the same edited JSP on the remote box it 
>> was stamped an hour ealier than the current time.
>>
>> I reconfigured WinSCP not to preserve the timestamp, and that fixed 
>> the issue.  The wierd thing is that now WinSCP is showing the remote 
>> JSP files as being timestamped an hour later.  Since the system time 
>> on my local machine is correct,  I'm a bit confused as to what WinSCP 
>> is doing here.
> 
> I have yet to meet a developer who truly understands working with time 
> zones and who can write code that deals with multiple time zones 
> correctly. I have met loads of developers who think they can, though. ;-)
> 
> Also, NTP is your friend.

This is really off-topic here, being WinSCP more than anything else.
But since I am also a heavy user of WinSCP, connecting to my various 
Apache and Tomcat machines, and I also see that same issue (some server 
sometimes showing me server files with a timestamp off by one hour more 
or less), and this has been puzzling me at some low level for a couple 
of years now, I'd also like to understand the issue fully while we have 
the chance.  This does not only concern JSP files by the way, but also 
logfiles etc..
I thought it was just a bug of WinSCP. I've kind of learned to live with 
it, and to mentally adjust for the discrepancies, but it's still puzzling.
My systems are using NTP to synchronise their time, workstations too. 
But I still see this discrepancy.  Care to repeat the explanation and 
the fix, or is it not a fix ?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Mon Cab <fu...@yahoo.com>.
Thanks Kees

It looks like this is a known issue with the WinSCP client.  The issue is with UTC vs DST, and seems to result from an assumption as to whether the remote server adjusts for DST or not.  It results in WinSCP both displaying incorrect timestamps for files on the server, as well as writing wrong timestamps when uploading.  





----- Original Message ----
From: Kees Jan Koster <kj...@gmail.com>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Friday, August 14, 2009 1:27:00 AM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's

Dear Mon Cab,

> Yes.  That fixed it.  Thankyou Kees.

Glad to help.

> For some reason, the issue was with my  WinSCP client.
> 
> When I edited a jsp and then looked at the jsp file timestamp on the remote machine with WinSCP it showed the timestamp as my the current time (local and remote system times are the same).  However, when I looked up the timestamp of the same edited JSP on the remote box it was stamped an hour ealier than the current time.
> 
> I reconfigured WinSCP not to preserve the timestamp, and that fixed the issue.  The wierd thing is that now WinSCP is showing the remote JSP files as being timestamped an hour later.  Since the system time on my local machine is correct,  I'm a bit confused as to what WinSCP is doing here.

I have yet to meet a developer who truly understands working with time zones and who can write code that deals with multiple time zones correctly. I have met loads of developers who think they can, though. ;-)

Also, NTP is your friend.
--
Kees Jan

http://java-monitor.com/
kjkoster@kjkoster.org
06-51838192

Human beings make life so interesting. Do you know that in a universe so full of wonders,
they have managed to invent boredom. Quite astonishing... -- Terry Pratchett


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Kees Jan Koster <kj...@gmail.com>.
Dear Mon Cab,

> Yes.  That fixed it.  Thankyou Kees.

Glad to help.

> For some reason, the issue was with my  WinSCP client.
>
> When I edited a jsp and then looked at the jsp file timestamp on the  
> remote machine with WinSCP it showed the timestamp as my the current  
> time (local and remote system times are the same).  However, when I  
> looked up the timestamp of the same edited JSP on the remote box it  
> was stamped an hour ealier than the current time.
>
> I reconfigured WinSCP not to preserve the timestamp, and that fixed  
> the issue.  The wierd thing is that now WinSCP is showing the remote  
> JSP files as being timestamped an hour later.  Since the system time  
> on my local machine is correct,  I'm a bit confused as to what  
> WinSCP is doing here.

I have yet to meet a developer who truly understands working with time  
zones and who can write code that deals with multiple time zones  
correctly. I have met loads of developers who think they can,  
though. ;-)

Also, NTP is your friend.
--
Kees Jan

http://java-monitor.com/
kjkoster@kjkoster.org
06-51838192

Human beings make life so interesting. Do you know that in a universe  
so full of wonders,
they have managed to invent boredom. Quite astonishing... -- Terry  
Pratchett


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Mon Cab <fu...@yahoo.com>.
Yes.  That fixed it.  Thankyou Kees.  

For some reason, the issue was with my  WinSCP client.  

When I edited a jsp and then looked at the jsp file timestamp on the remote machine with WinSCP it showed the timestamp as my the current time (local and remote system times are the same).  However, when I looked up the timestamp of the same edited JSP on the remote box it was stamped an hour ealier than the current time.  

I reconfigured WinSCP not to preserve the timestamp, and that fixed the issue.  The wierd thing is that now WinSCP is showing the remote JSP files as being timestamped an hour later.  Since the system time on my local machine is correct,  I'm a bit confused as to what WinSCP is doing here.  






----- Original Message ----
From: Kees Jan Koster <kj...@gmail.com>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Friday, August 14, 2009 12:40:54 AM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's

Dear Mon Cab,

> Given the results below it looks like this is not a daylight savings time issue.  In fact its extremely odd behavior.  Both Tomcat and the OS have the correct time, and yet when Tomcat compiles the JSP, the java and class files in the work directory have a create / modified time-stamp exactly 1 hour ahead of the time that they were created.

I have seen these issues in situations where I was working on an NFS drive when the server and my local machine had different ideas about what time it was.

Are you working on a local disk, or a network mounted drive?
--
Kees Jan

http://java-monitor.com/
kjkoster@kjkoster.org
06-51838192

The secret of success lies in the stability of the goal. -- Benjamin Disraeli


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Kees Jan Koster <kj...@gmail.com>.
Dear Mon Cab,

> Given the results below it looks like this is not a daylight savings  
> time issue.  In fact its extremely odd behavior.  Both Tomcat and  
> the OS have the correct time, and yet when Tomcat compiles the JSP,  
> the java and class files in the work directory have a create /  
> modified time-stamp exactly 1 hour ahead of the time that they were  
> created.

I have seen these issues in situations where I was working on an NFS  
drive when the server and my local machine had different ideas about  
what time it was.

Are you working on a local disk, or a network mounted drive?
--
Kees Jan

http://java-monitor.com/
kjkoster@kjkoster.org
06-51838192

The secret of success lies in the stability of the goal. -- Benjamin  
Disraeli


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Mon Cab <fu...@yahoo.com>.
Given the results below it looks like this is not a daylight savings time issue.  In fact its extremely odd behavior.  Both Tomcat and the OS have the correct time, and yet when Tomcat compiles the JSP, the java and class files in the work directory have a create / modified time-stamp exactly 1 hour ahead of the time that they were created.  

Again, Tomcat and the OS are both showing the correct time, but when the java and class files are created (say at 20:00) they are timestamped 21:00.  

I checked that JVM was giving the correct time by running: 

import java.util.*;
public class DateTest {
  public static void main(String[] args) {
    System.out.println("Date = " + new Date());
    System.out.println("Calendar = " + Calendar.getInstance());
  }
}

and got the correct time, and I checked that the OS had the correct time using command date.  

Anyone have any ideas what might be going on here??






----- Original Message ----
From: Mon Cab <fu...@yahoo.com>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Thursday, August 13, 2009 9:27:18 PM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's

Fedora Core release 4 (Stentz)
Java 1.4.2

I ran the code in the article you sent to get the JVM time, and the JVM is giving the correct time...  ie. same as the OS gives when I type the date command. 





----- Original Message ----
From: Andre-John Mas <aj...@sympatico.ca>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Thursday, August 13, 2009 9:09:53 PM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's


On 13-Aug-2009, at 23:59, Mon Cab wrote:

> Sorry forgot to answer your other questions.  I'm using Fedora, and timezone is PDT.  Pacific.
> 

Which Fedora version? Also what version of Java?

I am wondering whether there is a daylight saving issue. Maybe there is something in this article of relevance:

http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html

André-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Mon Cab <fu...@yahoo.com>.
Fedora Core release 4 (Stentz)
Java 1.4.2

I ran the code in the article you sent to get the JVM time, and the JVM is giving the correct time...  ie. same as the OS gives when I type the date command. 





----- Original Message ----
From: Andre-John Mas <aj...@sympatico.ca>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Thursday, August 13, 2009 9:09:53 PM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's


On 13-Aug-2009, at 23:59, Mon Cab wrote:

> Sorry forgot to answer your other questions.  I'm using Fedora, and timezone is PDT.  Pacific.
> 

Which Fedora version? Also what version of Java?

I am wondering whether there is a daylight saving issue. Maybe there is something in this article of relevance:

http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html

André-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Andre-John Mas <aj...@sympatico.ca>.
On 14-Aug-2009, at 00:09, Andre-John Mas wrote:

>
> On 13-Aug-2009, at 23:59, Mon Cab wrote:
>
>> Sorry forgot to answer your other questions.  I'm using Fedora, and  
>> timezone is PDT.  Pacific.
>>
>
> Which Fedora version? Also what version of Java?
>
> I am wondering whether there is a daylight saving issue. Maybe there  
> is something in this article of relevance:
>
> http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html
>

There is also this post:

http://ubuntuforums.org/showthread.php?t=552053

André-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Andre-John Mas <aj...@sympatico.ca>.
On 13-Aug-2009, at 23:59, Mon Cab wrote:

> Sorry forgot to answer your other questions.  I'm using Fedora, and  
> timezone is PDT.  Pacific.
>

Which Fedora version? Also what version of Java?

I am wondering whether there is a daylight saving issue. Maybe there  
is something in this article of relevance:

http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html

André-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Mon Cab <fu...@yahoo.com>.
Sorry forgot to answer your other questions.  I'm using Fedora, and timezone is PDT.  Pacific.  





----- Original Message ----
From: Mon Cab <fu...@yahoo.com>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Thursday, August 13, 2009 8:55:43 PM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's


That's what I thought.  

However if I edit and reload a file at 20:00, and check the system time with date command I get 20:00 as the system time. 
And yet the compiled Java and Class files are timestamped 21:00







----- Original Message ----
From: Andre-John Mas <aj...@sympatico.ca>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Thursday, August 13, 2009 8:50:54 PM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's

The time stamp on the file is given by your OS. What operating system and version are you using? Also, what time zone are you in?

André-John

On 13-Aug-2009, at 23:38, Mon Cab wrote:

> 
> When I edit a JSP, tomcat is compiling the JSP (both java and class files)  in the work directory with a timestamp exactly 1 hour greater than the current time.
> 
> Eg. If I edit a jsp (after emptying the work directory), at 20:00, and then load the page from a client, class and java files will appear in the work directory with a timestamp of 21:00.
> 
> I thought this might be a issue with the JVM time, however, when I look at the tomcat logs Tomcat is gorreclt logging time in the logs, exactly the same as the system time.
> 
> Does anyone have any idea why this might be happening?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Mon Cab <fu...@yahoo.com>.
I'm using Fedora, and timezone is PDT.  Pacific. 





----- Original Message ----
From: Andre-John Mas <aj...@sympatico.ca>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Thursday, August 13, 2009 9:01:34 PM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's


On 13-Aug-2009, at 23:55, Mon Cab wrote:

> 
> That's what I thought.
> 
> However if I edit and reload a file at 20:00, and check the system time with date command I get 20:00 as the system time.
> And yet the compiled Java and Class files are timestamped 21:00
> 

What operating system and version are you using? Also, what time zone are you in? There is maybe some environment issue.

André-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Andre-John Mas <aj...@sympatico.ca>.
On 13-Aug-2009, at 23:55, Mon Cab wrote:

>
> That's what I thought.
>
> However if I edit and reload a file at 20:00, and check the system  
> time with date command I get 20:00 as the system time.
> And yet the compiled Java and Class files are timestamped 21:00
>

What operating system and version are you using? Also, what time zone  
are you in? There is maybe some environment issue.

André-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Mon Cab <fu...@yahoo.com>.
That's what I thought.  

However if I edit and reload a file at 20:00, and check the system time with date command I get 20:00 as the system time. 
And yet the compiled Java and Class files are timestamped 21:00







----- Original Message ----
From: Andre-John Mas <aj...@sympatico.ca>
To: Tomcat Users List <us...@tomcat.apache.org>
Sent: Thursday, August 13, 2009 8:50:54 PM
Subject: Re: Tomcat writing the wrong timestamp on compiled JSP's

The time stamp on the file is given by your OS. What operating system and version are you using? Also, what time zone are you in?

André-John

On 13-Aug-2009, at 23:38, Mon Cab wrote:

> 
> When I edit a JSP, tomcat is compiling the JSP (both java and class files)  in the work directory with a timestamp exactly 1 hour greater than the current time.
> 
> Eg. If I edit a jsp (after emptying the work directory), at 20:00, and then load the page from a client, class and java files will appear in the work directory with a timestamp of 21:00.
> 
> I thought this might be a issue with the JVM time, however, when I look at the tomcat logs Tomcat is gorreclt logging time in the logs, exactly the same as the system time.
> 
> Does anyone have any idea why this might be happening?
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat writing the wrong timestamp on compiled JSP's

Posted by Andre-John Mas <aj...@sympatico.ca>.
The time stamp on the file is given by your OS. What operating system  
and version are you using? Also, what time zone are you in?

André-John

On 13-Aug-2009, at 23:38, Mon Cab wrote:

>
> When I edit a JSP, tomcat is compiling the JSP (both java and class  
> files)  in the work directory with a timestamp exactly 1 hour  
> greater than the current time.
>
> Eg. If I edit a jsp (after emptying the work directory), at 20:00,  
> and then load the page from a client, class and java files will  
> appear in the work directory with a timestamp of 21:00.
>
> I thought this might be a issue with the JVM time, however, when I  
> look at the tomcat logs Tomcat is gorreclt logging time in the logs,  
> exactly the same as the system time.
>
> Does anyone have any idea why this might be happening?
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org