tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajiv Mordani <Rajiv.Mord...@Sun.COM>
Subject Re: setWrapper and getWrapper in ContainerServlet
Date Sat, 03 May 2003 23:32:46 GMT
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 <Rajiv.Mordani@Sun.COM>
> > > Reply-To: Tomcat Developers List <tomcat-dev@jakarta.apache.org>
> > > 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 <Context> 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


Mime
View raw message