On Fri, 2 Mar 2001, Craig R. McClanahan wrote:

> Fernando Padilla wrote:
> >
> > Again, I'm trying to bridge the gap between the classloader used by the
> > server and the classloader used by the web app.  So that I can cast/use an
> > object from one classloader from the other classloader....
> >
> > Ideas?? Help?? Clue?? Rants?? Raves??
> >
> 
> In that case, you're not going to be able to do this cast.  The classes placed
> in $TOMCAT_HOME/server are loaded by a class loader that is not visible to web
> applications (i.e. it is not a parent class loader to the one used for your
> web app).
> 
> If you have additional information from the MyUserPrincipal class that your
> application needs to see, I suggest that you store them as request attributes
> or session attributes inside the authenticator.  This will work for anything
> that is a String or a Java primitive type (wrapped in the corresponding
> wrapper class such as java.lang.Integer for an "int").
> 


1) i hear people say, to add jar file to $TOMCAT_HOME/lib, I tried that
and that did not work, so i added them to $TOMCAT_HOME/server and that did
work.

2) request or session attributes inside the authenticator??
   I'm using MyRealm, the interface to that is just
   authenticate( String user, String pass ), how can I access the request
   or session that is being authenticated??


thank you :):):)

fern



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to