You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Roy Truelove <ro...@binghamton.edu> on 2000/04/28 15:54:10 UTC

Servlet reloading problem

I teach a class where I've got 50 students that have to write guestbooks
with servlets, with a context for each student.. the perfect environment for
testing servlet reloading.  For the most part reloading has worked
wonderfully except in one case.. the students use file I/O to store the
guestbook.  If they use one file, it works fine, but if they change the name
of the file, reupload it, the servlet without fail will be reading / writing
the *old* file.  Once I restart the server, this is no longer a problem.

Now since they are students, they might not be closing the file, which could
have something to do with problem.  Once I get their source code I could
tell you for sure.

If this is already in the bug database, I apologize, but I've still to
figure out how to Bugzilla. :)

Just something to chew on,
Roy


Re: Servlet reloading problem

Posted by Arion <ar...@talentinfo.com.hk>.
Hi!

Just my wild guess:
You student is using another class to manipulate the file and Tomcat can only
reload the updated servlet class but not the classes used by the servlet.

Arion

Roy Truelove wrote:

> I teach a class where I've got 50 students that have to write guestbooks
> with servlets, with a context for each student.. the perfect environment for
> testing servlet reloading.  For the most part reloading has worked
> wonderfully except in one case.. the students use file I/O to store the
> guestbook.  If they use one file, it works fine, but if they change the name
> of the file, reupload it, the servlet without fail will be reading / writing
> the *old* file.  Once I restart the server, this is no longer a problem.
>
> Now since they are students, they might not be closing the file, which could
> have something to do with problem.  Once I get their source code I could
> tell you for sure.
>
> If this is already in the bug database, I apologize, but I've still to
> figure out how to Bugzilla. :)
>
> Just something to chew on,
> Roy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Re: Servlet reloading problem

Posted by James Duncan Davidson <Ja...@eng.sun.com>.
On Fri, 28 Apr 2000, Roy Truelove wrote:
> Now since they are students, they might not be closing the file, which could
> have something to do with problem.  Once I get their source code I could
> tell you for sure.