tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From A <>
Subject GenericPrincipal classcast BUG
Date Tue, 24 Aug 2004 09:31:44 GMT
Developers - 

I have read the WIKI about problems with classcast of
a java.lang.Security object.   Here it is

 Even though i have System.out.println statements in
my implementation of the Principal class - and i know
that my principal is being authenticated i keep
getting back an object which is of type

org.apache.... GenericPrincipal when in fact it should
be my own Principal object - Can someone let me know
what i have done wrong?  I  have run out of ideas.

//override superclass implementation - 
protected String getRelativePath(HttpServletRequest
request) {
ExtendedPrincipal principal = (ExtendedPrincipal)

throws Class Cast Exceptrion 

public interface ExtendedPrincipal extends{
public String getEmailAddress();

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message