On Wed, Sep 22, 2004 at 11:01:28AM -0400, Shapira, Yoav wrote:
> 
> Hi,
> I just committed a fairly big patch from Andrew Jaquith last night that
> addresses numerous issues encountered when using the JAASRealm with
> custom user and role class names.  You may wish to build from CVS and
> see if this patch fixes your exception.   The patch was in Bugzilla
> issue 28631 if you want to look it up.

thanks for your advice.

the good news:
checked out, built, deployed.

the bad news:
same ClassCastException:

i`ll give u the relevant parts:


[DabLoginModule]

...
(52) public boolean login() throws LoginException {

(54)   logger.debug("loginmodule loaded by: ["
                +this.getClass().getClassLoader()+"]");
(55)   logger.debug(this.handler.getClass().getName()+ 
                        "(initialized handler) loaded:"
                        +this.handler.getClass().getClassLoader());     

(56)  DabCallBackHandler handler = (DabCallBackHandler) this.handler;
  
(57)  logger.debug("name: ["+handler.getClass().getName()+
                "] loader: ["+handler.getClass().getClassLoader()+"]");
(58)  logger.debug("test if works:"+handler.getUsername());
...


which results in a log of:

DEBUG [http-8080-Processor25] (DabLoginModule.java:54) - loginmodule
        loaded by: [WebappClassLoader ...
DEBUG [http-8080-Processor25] (DabLoginModule.java:55) -
        javax.security.auth.login.LoginContext$SecureCallbackHandler
        (initialized handler) loaded: null

javax.security.auth.login.LoginException: java.lang.ClassCastException
        at
com.warenform.ima_frontend.interf.DabLoginModule.login(DabLoginModule.java:56)



any more hints? 

greetings
rene


-- 
gpg-key 8FC78254 http://www.so36.net/keys/rene.asc
fingerprint: E883 D359 3F56 51AF 0294  8BEB 16B3 15BD 8FC7 8254

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

Reply via email to