thanks! it seems that role is mandatory, so i add role name, now user authenticated succefely but it he cannot access to ressources because of exception: exception retrieving roles for "USERNAME" I defined the Roles table and role columns inside releam and the user USERNAME has an athorized role..
Pid-2 wrote: > > lmk wrote: >> hello all, >> >> I try ti use tomcat security management with DataSourceRealm but I never >> get >> authentication console, log shows that user 'Successfully passed all >> security constraints' >> I declare Realm inside server.xml: >> >> <Realm className="org.apache.catalina.realm.DataSourceRealm" >> dataSourceName="jdbc/auth" userTable="USERS" userNameCol="login" >> userCredCol="password" /> >> >> and security constraints on web.xml >> >> <security-constraint> >> <display-name>TOMCAT SECURITY</display-name> >> <web-resource-collection> >> <web-resource-name>Entire Application</web-resource-name> >> <url-pattern>/*</url-pattern> >> </web-resource-collection> > > <auth-constraint> > <role-name>someusertype</role-name> > <auth-constraint> > >> </security-constraint> >> <login-config> >> <auth-method>BASIC</auth-method> >> </login-config> > > <security-role> > <role-name>someusertype</role-name> > </security-role> > > p > > >> did I forget anything..? >> >> thanks! >> >> > > > --------------------------------------------------------------------- > 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-tp19073540p19085907.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]