Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 24531 invoked by uid 500); 11 Jun 2001 02:48:38 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 24381 invoked from network); 11 Jun 2001 02:48:37 -0000 Received: from unknown (HELO mailsrv.pinkline.net) (202.177.159.149) by h31.sny.collab.net with SMTP; 11 Jun 2001 02:48:37 -0000 Received: (qmail 18412 invoked from network); 11 Jun 2001 02:38:22 -0000 Received: from unknown (HELO default) (202.131.128.120) by host159-149 with SMTP; 11 Jun 2001 02:38:22 -0000 Message-ID: <000601bf743b$24bb2440$788083ca@default> Reply-To: "Hemant Singh" From: "Hemant Singh" To: References: Subject: Re: Automaticaly update the servlets Date: Thu, 10 Feb 2000 19:50:39 +0530 Organization: Supportscape Inc. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N HI Randy and Milt: I strongly believe that issue is not at all related to classpath, As offcourse servlets are loaded by tomcat server, and in case they uses suns classloader i guess it not at all caches the loaded class, Is there any sun guy which can clarify this? Regards, Hemant ----- Original Message ----- From: "Randy Layman" To: Sent: Friday, June 08, 2001 7:55 PM 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" > > To: > > 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" > > > > To: > > > > 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 > > > > >