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.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, September 22, 2004 11:00 AM
>To: Tomcat Users List
>Subject: Re: RE : too many JAAS...
>
>On Wed, Sep 22, 2004 at 04:26:44PM +0200, LERBSCHER Jean-Pierre wrote:
>> Why do you have a ClassCastException exception ?
>> Could you give us more detail on your realm configuration ?
>> Do you configured a jass realm with custom userClassNames and
>roleClassNames
>> attributes ? or any thing else.
>
>
>okay, my context configuration looks like:
>
><Realm className="org.apache.catalina.realm.JAASRealm"
>        verbosity="99"
>        appName="dabRealm"
>        debug="99"
>        useContextClassLoader="true"
>        userClassNames="com.warenform.ima_frontend.auth.DabPrincipal"
>        roleClassNames="com.warenform.ima_frontend.auth.DabRole"/>
>
>my login.conf shows:
>
>dabRealm {
>      com.warenform.ima_frontend.interf.DabLoginModule  REQUIRED;
>};
>
>loginModule/Role/Principal-classes are visible to
$CATALINA_HOME/common/lib
>
>and the way i invoke the whole thing is via
>
>servlet which is called by url /login.do -
>
>creates my DabCallBackHandler ,
>pushes this into new LoginContext
>module gets invoked - and creates exception like described in the
>thread-start.
>
>hm - am i lost?
>
>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]

Reply via email to