This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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: