1 Reply Latest reply on Jul 17, 2013 7:45 AM by sarah Aldhen

    Security Configuration in Arquillian

    sarah Aldhen Newbie

      I'm trying ti use @RunAs("") annotation so as i can call a secured ejb from other one (TestEJBBean)


      I've created an ejb and add this




      public class TestEJBBean implements ITestBean {




      but i'm getting an exception The RunAs role "user" is not mapped to a principal. I tried to set the web.xml via setWebXML in my deployment method but it didnt work (i got another exception ).

      (I'm running my tests under an embedded glassfish)


      Any ideas !!