wood burning stoves 2.0*
The moose likes Tomcat and the fly likes JSPs not being updated from time to time in work directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JSPs not being updated from time to time in work directory" Watch "JSPs not being updated from time to time in work directory" New topic
Author

JSPs not being updated from time to time in work directory

Greg Werner
Ranch Hand

Joined: May 07, 2009
Posts: 54


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

Joined: Jun 25, 2001
Posts: 16145
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSPs not being updated from time to time in work directory