-----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]

Reply via email to