Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 39731 invoked from network); 18 Aug 2009 19:40:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 19:40:17 -0000 Received: (qmail 84295 invoked by uid 500); 18 Aug 2009 19:40:32 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 84235 invoked by uid 500); 18 Aug 2009 19:40:32 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 84224 invoked by uid 99); 18 Aug 2009 19:40:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 19:40:32 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of tsakai@gallo.ucsf.edu) Received: from [63.193.204.12] (HELO mail12.egcrc.net) (63.193.204.12) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 19:40:23 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CA203B.ACE22986" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: (newbie question) missing classs file? Date: Tue, 18 Aug 2009 12:36:53 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: (newbie question) missing classs file? Thread-Index: AcogOqEM/+BnhoBHQVO8q5ekhFVvTgAAJxgn References: <190e13280908181151x17e9aae2u75efb5576cdb2f4f@mail.gmail.com> <190e13280908181213o374f01c3xa6e304d3185bee27@mail.gmail.com> <4A8B01A1.2090405@cornell.edu> From: "Tena Sakai" To: "Tomcat Users List" , "Tomcat Users List" X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01CA203B.ACE22986 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi David, > you'd have to reload the webapp to make the change show. Would you mind telling me how I would do that? I just restarted tomcat and hit the same pages. No changes. I mean it shows double "Hello!" and I see no class file generated anywhere under $CATALINA_HOME/webapps/sample directory. Tena -----Original Message----- From: David Smith [mailto:dns4@cornell.edu] Sent: Tue 8/18/2009 12:31 PM To: Tomcat Users List Subject: Re: (newbie question) missing classs file? =20 I believe once a servlet is initialized in memory, it stays in and is re-used over and over. After removing the class, you'd have to reload the webapp to make the change show. --David Daniele Development-ML wrote: > Consider also that once the application is loaded is memory, even if = you > cancel the classes, the application still works. > I doubt that the JVM maintains in memory all the classes, all the = times, but > if your current usage of the heap is not ridiculous big, probably your = class > remains loaded. > > Dan > > On Tue, Aug 18, 2009 at 8:00 PM, Tena Sakai = wrote: > > =20 >> Hi Dan, >> >> =20 >>> Are you reloading the pages from the server with the shift key? >>> The pages might be locally cached from your browser. >>> =20 >> Shift or no shift, it makes no difference. >> I told my browser to dump the cache then hit pages again. >> No difference. >> >> I doubt this is a cache issue. If that's the case, why does >> it reflect my hack (double "Hello!") and no class file? >> >> I am confused. >> >> Tena >> >> >> -----Original Message----- >> From: Daniele Development-ML [mailto:daniele.dml@googlemail.com] >> Sent: Tue 8/18/2009 11:51 AM >> To: Tomcat Users List >> Subject: Re: (newbie question) missing classs file? >> >> Are you reloading the pages from the server with the shift key? >> >> The pages might be locally cached from your browser. >> >> Dan >> >> On Tue, Aug 18, 2009 at 7:48 PM, Tena Sakai = wrote: >> >> =20 >>> Hi, >>> >>> I am new to tomcat and jsp. I appologize in advance my lack of >>> =20 >> knowledge, >> =20 >>> but I would appreciate some poninters. >>> >>> I am running tomcat 6.0.14 on redhat linux. >>> >>> After reading a few pages of documentation, I tried: >>> http://localhost:8080/sample >>> >>> It rendered what's in $CATALINA_HOME/webapps/sample/index.html, >>> which included 2 hyperlinks: "JSP page" and "servlet". Both >>> links worked fine. >>> >>> Then I found a file >>> $CATALINA_HOME/webapps/sample/WEB-INF/classes/mypackage/Hello.class. >>> I removed this class file and hit the same url as before ( >>> http://localhost:8080/sample), >>> and each of the "JSP page" and "servlet", expecting the error from >>> =20 >> tomcat. >> =20 >>> To my amazement, they both worked. >>> >>> Question number 1: Where is the executable class file? >>> >>> Then I went on to modify hello.jsp in $CATALINA_HOME/webapps/sample >>> directory. >>> I added extra string "Hello!" to what used to be: >>> <%=3D new String("Hello!") %> >>> >>> Tomcat gave me what I expected: double Hello's. >>> I thought it might have generated a class file. But there is no = class >>> =20 >> file >> =20 >>> anywhere under $CATALINA_HOME/webapps/sample directory? >>> >>> Question number 2: Why does this work? >>> >>> Thank you in advance. >>> >>> Regards, >>> >>> Tena Sakai >>> tsakai@gallo.ucsf.edu >>> >>> =20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org ------_=_NextPart_001_01CA203B.ACE22986--