However I still have a last problem after the user-form authentication when I call the request.getUserPrincipal. When I cast the class to my principal, there is a jasperException :
PS : I have also a little question : Why must I declare the jar librairies in the server lib directory if the authentication is only for my context ? For example with caucho resin the server looks for the authenticator classes only into the WEB-INF/lib directory.
These issues are very related. You need to include your realm stuff in the server/lib because the container authenticator doesn't live in any particular Context (Someone please confirm that I'm not lying; this has been my experience!).
It's possible that your UserPrincipal object was created using a UserPrincipal class from a different class loader.
So, if you have the UserPrincipal class definition in both the server/lib/yourRealm.jar and in WEB-INF/classes or WEB-INF/lib for your webapp, then the two classes are /not/ considered the same. Thus, their instances are incompatable.
ClassLoading issues are always crazy, because sometimes comparing apples to apples is really comparind apples to oranges. :(
-chris
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
