EJB dependency injection of remote service fails on Glassfish
问题 I am unable to get dependency injection to work for my remote service and I cannot figure out why. I want an instance of RemoteService so I wrote. @EJB(name="RemoteService") private RemoteService service; And the Bean itself is defined with mappedName="RemoteService: @Stateless(mappedName = "RemoteService") public class RemoteServiceBean implements RemoteService When I try to run this code I get an InjectionException: EJB5070: Exception creating stateless session bean : [{0}] com.sun