aspose file tools*
The moose likes Tomcat and the fly likes Tomcat fails to detect jsp changes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat fails to detect jsp changes" Watch "Tomcat fails to detect jsp changes" New topic
Author

Tomcat fails to detect jsp changes

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
I have a folder called myjsp in witch I have many jsp pages. I often make changes to these jsp pages and copy folder myjsp to many servers (Tomcat 5 and Tomcat 6).
SOME of these Tomcat would fail to detect my changes. All tomcat are configured the same way. Reload is set to true.
Although I could delete Tomcat/work folder to force jsp reload but I think Tomcat is supposed to detect the changes.
Any ideas?
Thanks

BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16145
    
  21

Tomcat doesn't detect the changes instantly. It scans the directory and context file periodically and applies changes it finds. You might not be waiting long enough for Tomcat's scanning cycle to kick in.


Customer surveys are for companies who didn't pay proper attention to begin with.
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 671
Thanks Tim.

I tracked it down. Example:
I had a JSP dated 7/1/2009. I sent it to the user. He got it and did not use it till 8/1/2009. I changed the JSP on 7/15 and sent it to the user on 8/5. The 7/15 version will not be compiled because the servlet has a date of 8/1 witch is newer than the JSP date of 7/15.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat fails to detect jsp changes