I have a EAR project containing an EJB and a WEB module. The EJB module contains a stateless session ejb with a runAs annotation:
In the web module there is a Servlet defined whith a loadOnStartup=1 option:
To declare the RunAs annotation the EAR module contains a glassfish-application.xml file with
So I think I map a principal to that role which is used to by the RunAs annotation.
In addition the ejb module contains a glassfish-ejb-jar.xml file with :
During deployment the servlet should call some methods of the UserGroupService. The UserGroupService is injected as far as I can see during debugging.
But now I got a "Could not create stateless EJB" exception when the servlet tries to call a EJB method.
The same ear deploys on GlassFish 220.127.116.11 without any problem.
Are there any changes in the security definition? Or is there something going wrong during the deployment process of GlassFish4