Hi, I didn't follow the rest of your thread. Your callback handler is loaded from common/lib, not WEB-INF/lib, right?
Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Wednesday, September 22, 2004 2:25 PM >To: Tomcat Users List >Subject: Re: RE : too many JAAS... > >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.j ava: >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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
