4 Replies Latest reply on Mar 2, 2011 2:28 PM by franekgc

    Injection between WAR and EJB

    franekgc

      I have enterprise application (EAR) with one WAR module and one EJB module inside.


      Now i would like to inject stateless session bean from EJB module to named bean in WAR module:
      -----------
      @Inject
      private UserLocal userBean;
      ------------


      But at the server startup i get an error:
      ----------------------
      WELD-001408 Unsatisfied dependencies for type UserBean with qualifiers @Default at injection point field @Inject private org.AandP.game.user.Searcher.userBean
      ----------------------



      Server starts up without errors when i remove  @Stateless annotation from UserBean class.
      There is only one implementation on UserLocal interface


      Do You know what's wrong here?