O.K. I will try this again. I read your first post a few more times and tried to better understand your situation. From what I see...
If you want a principal of your application to be assigned role "Role1", then (as per your configuration) a user must authenticate as principal "Principal1". To be more specific, a user must log in with username = "Principal1" acording to your config. Is this the case? Another issue is that your servlet is told to run as "Principal". So even if a user logs in with username = "Principal1" and assinged role "Role1", the servlet (which is actually calling the EJB) is set to run with as a different principal. However, all that being the case, the error message you have posted does not jive with any of this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924606#3924606 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924606 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user