yes I set all parameters on the realm defined on the server.xml, but, I
forgot realm definition on the context.xml, so, tomcat use first realm on
the context.xml.
it works fine now..
thanks a lot..



Christopher Schultz-2 wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> To whom it may concern,
> 
> lmk wrote:
>> it seems that role is mandatory, so i add role name,
>> now user authenticated successfully but it he cannot access to resources
>> because of exception:
>> exception retrieving roles for "USERNAME"
> 
> You have not set any of the following attributes on the <Realm>:
> 
> userRoleTable
> roleNameCol
> 
> Please see http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html for
> details.
> 
>> I defined the Roles table and role columns inside releam and the user
>> USERNAME has an athorized role..
> 
> No, you didn't:
> 
>> <Realm className="org.apache.catalina.realm.DataSourceRealm"
>> dataSourceName="jdbc/auth" userTable="USERS" userNameCol="login"
>> userCredCol="password" />
> 
> If you changed your <Realm> configuration, please post what you have, now.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iEYEARECAAYFAkitmrIACgkQ9CaO5/Lv0PBNggCeL3pdmtguMcyEace9pRLQzQGp
> cy8An2/lzZ+tqgCQD8jo9tLvHmKjuWL6
> =qXoP
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tomcat-5.5-DataSourceRealm--not-taken-in-charge-tp19073540p19102853.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to