Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSPs not being updated from time to time in work directory

 
Greg Werner
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Once every blue moon (and I do mean it happens pretty rarely) I make a change to a jsp in my j2ee application and the change does not show up in my application. If I have had enough coffee, I realize oh if I just go to the work directory and delete the generated .java and .class file which Tomcat keeps for my jsp then my new jsp will be handled correctly next time someone vists that page. But sometimes, I have doubt and I say oh I must have done something else wrong in my jsp and so I do not think to go to the work directory to do this.

So my question is, what are some of the causes of Tomcat not regenerating the .java and the .class files for a jsp page? Is there anything I can do to reduce the rate from once every blue moon to 1/infinity?

I am using Tomcat 6 if that helps any.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be that you just need a little patience. Tomcat doesn't update instantaneously. It does a periodic scan. The default scan interval is fairly short, but if you're impatient, sometimes you might be outracing it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic