Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 55420 invoked from network); 3 May 2003 23:32:47 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 May 2003 23:32:47 -0000 Received: (qmail 20511 invoked by uid 97); 3 May 2003 23:34:55 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 20504 invoked from network); 3 May 2003 23:34:54 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 3 May 2003 23:34:54 -0000 Received: (qmail 54555 invoked by uid 500); 3 May 2003 23:32:40 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 54542 invoked from network); 3 May 2003 23:32:39 -0000 Received: from nwkea-mail-2.sun.com (192.18.42.14) by daedalus.apache.org with SMTP; 3 May 2003 23:32:39 -0000 Received: from ha2sca-mail1.SFBay.Sun.COM ([129.145.155.62]) by nwkea-mail-2.sun.com (8.12.9/8.12.9) with ESMTP id h43NWlTl024995 for ; Sat, 3 May 2003 16:32:47 -0700 (PDT) Received: from nine (nine [129.145.132.135]) by ha2sca-mail1.SFBay.Sun.COM (8.11.7+Sun/8.10.2/ENSMAIL,v2.1p1) with SMTP id h43NWl118390 for ; Sat, 3 May 2003 16:32:47 -0700 (PDT) Date: Sat, 3 May 2003 16:32:46 -0700 (PDT) From: Rajiv Mordani X-Sender: mode@nine To: Tomcat Developers List Subject: Re: setWrapper and getWrapper in ContainerServlet In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have setWrapper implemented as public void setWrapper(Wrapper wrapper) { System.out.println("setting wrapper"); this.wrapper = wrapper; context = (Context) wrapper.getParent(); host = (Host) context.getParent(); } Nothing is printed on the console when I access the servlet. - Rajiv -- :wq On Sat, 3 May 2003, Rajiv Mordani wrote: > Yep I have set privileged=true. Yes I am aware of the side effect. When > the servlet is init'd wrapper is null and setWrapper isn't getting > invoked. Also this is with tomcat 5. > > - Rajiv > -- > :wq > > On Sat, 3 May 2003, Craig R. McClanahan wrote: > > > > > > > On Sat, 3 May 2003, Rajiv Mordani wrote: > > > > > Date: Sat, 3 May 2003 14:28:27 -0700 (PDT) > > > From: Rajiv Mordani > > > Reply-To: Tomcat Developers List > > > To: tomcat-dev@jakarta.apache.org > > > Subject: setWrapper and getWrapper in ContainerServlet > > > > > > Do I have to do anything special to have the container invoke the > > > setWrapper in a ContainerServlet? I have implemented a ContainerServlet > > > and the set / getWrapper method but it doesn't seem to be getting invoked. > > > > > > > The webapp also has to have privileged="true" in its entry -- > > see how the manager and admin webapps are configured for an example. As a > > side effect, the parent class loader becomes the server class loader as > > well. > > > > > - Rajiv > > > -- > > > :wq > > > > > > > Craig > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org