I have a MyRealm class to lock down my webapp.

That works fine.  I have the jar file with the classes in
$TOMCAT_HOME/server  and within $WEB_APP/WEB_INF/lib.

The Web App needs to gain access to the username/password given to the
Realm ( right now I store it in the MyPrincipal class ), to be able to
login into a backend tier.

I try to cast the Principal ( from getUserPrincipal ), to MyPrincipal, but
it there is a ClassCastException ( though it is indeed the right class,
it's from a different class loader.. etc )....


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??

just toss 'em out

fern



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

Reply via email to