tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle, William (CAP, TIP)" <William.Bo...@gecapital.com>
Subject RE: Automaticaly update the servlets
Date Fri, 08 Jun 2001 15:15:17 GMT
A little off-topic, but I have found that Tomcat doesnt seem to auto-reload servlets which
are invoked through a RequestDispatcher call (servlet-chaining).  Would this also be a
difficult feature to add?

Bill

-----Original Message-----
From: Randy Layman [mailto:randy.layman@aswethink.com]
Sent: Friday, June 08, 2001 10:26 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Automaticaly update the servlets



	The problem is that the System class loader (the one that loads your
CLASSPATH environment variable) is keeping a cache around of the class.
This is why Milt (correctly) told you to remove the WEB-INF/classes from
your classpath if you want the auto-reloading to work as it is supposed to*.
If the System class loader loads your class then its impossible for Tomcat
to load it, and if Tomcat doesn't load it in the first place, then it can't
unload and reload it.

	Randy

* - Many people have problems with the way that auto-reloading works in
Tomcat.  A large number have problems like yours, and large numbers also
complain that the auto-reloading doesn't work for non-servlet classes (which
it doesn't due to complexity of the problem).

> -----Original Message-----
> From: Pablo Morillas [mailto:pablo@sortes.com]
> Sent: Friday, June 08, 2001 10:29 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Automaticaly update the servlets
> 
> 
> Yes, it is in my classpath. But I don't believe that the 
> classpath is the
> problem becouse when I start Tomcat as a service it runs 
> properly. If I
> change a .jsp it reload properly.
> I don't know what is happen but, when I delete the class file from the
> WEB-INF/classes the servlet run properly (incredible). Then, 
> after I restart
> the server a error was reported. I compile it another in the 
> WEB-INF/classes
> without restart Tomcat and it runs ok.
> I suppose that the servlet file is in any cache of Tomcat, 
> but I can be
> perfectly wrong. Uses Tomcat any type of GUID to run classes?
> 
> I don't know what's happen. Please, advice.
> 
> ==================================
> Pablo Morillas
> http://www.sortes.com
> pablo@sortes.com
> ==================================
> ----- Original Message -----
> From: "Milt Epstein" <mepstein@uiuc.edu>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Friday, June 08, 2001 3:03 PM
> Subject: Re: Automaticaly update the servlets
> 
> 
> > On Fri, 8 Jun 2001, Pablo Morillas wrote:
> >
> > > Hello Filip.
> > >
> > > I didn't know that but, unfortunately the servlet is in the
> > > WEB-INF/classes directory. The scheme is that I start tomcat and I
> >
> > Is WEB-INF/classes in your classpath?  Because it shouldn't 
> be if you
> > want reloading to work.
> >
> >
> > > get the correct result but, if I change the servlet and compile it
> > > the output is the same until I restart Tomcat. I've tried 
> to remove
> > > the class file of the servlet that is in the 
> WEB-INF/classes but the
> > > page goes up like it would be in a cache. I get the 
> result even the
> > > class is removed. If I restart tomcat I get the error page saying
> > > that request didn't be found.
> > >
> > > I've readed several mail and I've sincronized the time between my
> > > box and the server with "net time /domain /set" and I now have the
> > > same time, but this isn't the solution.
> > >
> > > Can anybody help me, becouse I use tomcat like a service in other
> > > coumputer with IIS and I dn't want to have restart the server
> > > service when I change anything in any servlet.
> > >
> > > Thaks all.
> > >
> > > ==================================
> > > Pablo Morillas
> > > http://www.sortes.com
> > > pablo@sortes.com
> > > ==================================
> > > ----- Original Message -----
> > > From: "Filip Hanik" <mail@filip.net>
> > > To: <tomcat-user@jakarta.apache.org>
> > > Sent: Friday, June 08, 2001 2:25 AM
> > > Subject: RE: Automaticaly update the servlets
> > >
> > >
> > > > as long as your servlet classes are under 
> WEB-INF/classes and not
> > > > WEB-INF/lib Tomcat will reload servlets.
> > > > and it always reloads JSP pages
> > > >
> > > > Filip
> > > >
> > > > ~
> > > > Namaste - I bow to the divine in you
> > > > ~
> > > > Filip Hanik
> > > > Software Architect
> > > > filip@filip.net
> > > > www.filip.net
> > > >
> > > > >-----Original Message-----
> > > > >From: Pablo Morillas [mailto:pablo@sortes.com]
> > > > >Sent: Thursday, June 07, 2001 2:21 PM
> > > > >To: tomcat-user@jakarta.apache.org
> > > > >Subject: Automaticaly update the servlets
> > > > >
> > > > >
> > > > >Hello all.
> > > > >
> > > > >I'm starting to use Tomcat and I have seen that I have 
> to restart
> > > > >the server
> > > > >when I update a servlet. Is it true? Is there any way 
> to avoid it?
> > > > >
> > > > >Thanks all.
> > > > >
> > > > >==================================
> > > > >Pablo Morillas
> > > > >http://www.sortes.com
> > > > >pablo@sortes.com
> > > > >==================================
> > > > >
> > > > >
> > > >
> > >
> >
> > Milt Epstein
> > Research Programmer
> > Software/Systems Development Group
> > Computing and Communications Services Office (CCSO)
> > University of Illinois at Urbana-Champaign (UIUC)
> > mepstein@uiuc.edu
> >
> 

Mime
View raw message