Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Tomcat fails to detect jsp changes

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Saloon Keeper
Posts: 24575
168
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic