• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat fails to detect jsp changes

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18108
51
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic