0 Replies Latest reply on Jun 24, 2006 1:20 PM by trouby

    EJB injection dependencies failure...

    trouby

      Hello,

      I'm trying to deploy an EAR file with some EJBs into Jboss 4.0.4GA,

      I have two Stateless beans: AccountBean/UserBean,

      As it seems, if no EJB injection is done between those two, both are deployed correctly, even if one EJB is injected into another things work fine,

      But at the moment I add depdenencies between both beans (on each EJB I inject the other one by the @EJB annotation) I get the following failure in deployment time:


      20:13:14,909 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      
      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:ear=registration.ear,jar=Registration-EJBModule.jar,name=AccountBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       persistence.units:ear=registration.ear,jar=Registration-EJBModule.jar,unitName=default
       jboss.j2ee:ear=registration.ear,jar=Registration-EJBModule.jar,name=TargetSystemBean,service=EJB3
       jboss.j2ee:ear=registration.ear,jar=Registration-EJBModule.jar,name=UserBean,service=EJB3
       Depends On Me:
       jboss.j2ee:ear=registration.ear,jar=Registration-EJBModule.jar,name=UserBean,service=EJB3
      
      ObjectName: jboss.j2ee:ear=registration.ear,jar=Registration-EJBModule.jar,name=UserBean,service=EJB3
       State: NOTYETINSTALLED
       I Depend On:
       jboss.j2ee:ear=registration.ear,jar=Registration-EJBModule.jar,name=TargetSystemAttributeBean,service=EJB3
       persistence.units:ear=registration.ear,jar=Registration-EJBModule.jar,unitName=default
       jboss.j2ee:ear=registration.ear,jar=Registration-EJBModule.jar,name=AccountBean,service=EJB3
       Depends On Me:
       jboss.j2ee:ear=registration.ear,jar=Registration-EJBModule.jar,name=AccountBean,service=EJB3
      



      This app seems to work perfectly on Glassfish,
      As it seems, in Jboss there's a problem when one EJB X is depdend on Y when Y is depdendent on X,


      Any clues?

      Thanks in advanced,

      Asaf.