Hi,
I'm getting an exception trying to run my code with @runAs. I"ve got a remote client which calls RunAsSecurityBeanImpl bean. In RunAsSecurityBeanImpl bean i've injected PrintRoleBean with @EJB just to see which princple is used. My glassfish contains the roles needed which is manager.I've googled the exception but I haven't found an answer to why an exception is raised. Running my remote client I get the following exception:
This is the code for the remote client:
The remote interface for RunAsSecurityBeanImpl:
The injected bean in RunAsSecurityBeanImpl:
I've added the roles in glassfish-web.xml: