tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas PERIDONT" <>
Subject Principal Cast Exception
Date Sat, 02 Feb 2002 15:51:50 GMT

I have make my own Principal class name MyPrincipal that extends from
I make my own Realm and i can log with it.
But when i get the Principal object whith the request.getUserPrincipal()
method i cant cast this object in (MyPrincipal).
I get a classCastException when i try to to this
But the most strange is that i get a MyPrincipal response when i try a

Have some idea why i can't make a cast on it ?
Does it come from the diference of classLoader between the JSP environement
and the Server environement ?

Thanks in advance for your help


To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message