Am Sonntag, 21. Juni 2009 01:34:29 schrieb Caldarale, Charles R: > [...] you hard-code the single role name in the LoginModule, using whatever > value you have in web.xml (currently "User"). You must have a role class > that implements Principal and Serializable (in addition to the Principal > class for the user name); this role class must be specified in your <Realm> > element via the roleClassName attribute. Create an instance of the role > class with the predefined name and add it to the Subject object's > principals set in your commit() method after you have added the user name > Principal object.
By adding a roleClassName to the Realm descriptor (context.xml) and by adding a RolePrincipal to the subject solved my problem of authentication failures. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org