Re: Problem updating class files
From: Jared Dykstra (dyksjare_at_hotmail.com)
Date: 12/19/03
- Next message: nos: "newbie question about exceptions"
- Previous message: Raymond DeCampo: "Re: Class files for jsp"
- In reply to: Harold Ensle: "Problem updating class files"
- Next in thread: Harold Ensle: "Re: Problem updating class files"
- Reply: Harold Ensle: "Re: Problem updating class files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Dec 2003 15:22:59 -0800
"Harold Ensle" <heensle@ix.netcom.com> wrote in message news:<Z_5Eb.8881$0s2.8112@newsread2.news.pas.earthlink.net>...
> Has anyone ever had this problem? I have been compiling servlet files,
> correcting them, recompiling them and seeing the changes on the
> next URL request. So everything was going smoothly. Suddenly
> I could no longer change the .class files. That is, they were changed
> but the URL was apparently calling a cached version which would
> not update. When Apache was restarted, it would then finally update.
> Needless to say this is very undesirable behavior and its sudden
> mysterious appearance is very puzzling. (To prove that it was a
> cached version, I deleted all copies of both the class and java
> files from the server and the URL call still worked!...until apache
> was restarted.)
>
> H.Ellis Ensle
A servlet's class files are never transmitted. Therefore, if they are
cached, it is the servlet container that is doing the caching. It
doesn't make sense not to cache the class files and keep them loaded
because in a production environment requests come in more often than
the class files are changed.
Since you mentioned apache, I'm going to assume you are using the
Apache tomcat servlet container. Tomcat has settings which dictate
whether it should check the class files each time a request comes in
or not to. In the latter case, you will have to reload the servlet
either by using the manager interface or by restarting the server.
If you are using a connector through to the Apache HTTPD server,
restarting the http server will have no effect on the state of the
servlet.
--- Jared Dykstra http://www.bork.org/~jared
- Next message: nos: "newbie question about exceptions"
- Previous message: Raymond DeCampo: "Re: Class files for jsp"
- In reply to: Harold Ensle: "Problem updating class files"
- Next in thread: Harold Ensle: "Re: Problem updating class files"
- Reply: Harold Ensle: "Re: Problem updating class files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|