2 Replies Latest reply on Jun 22, 2007 8:45 AM by Aneta Gueorguieva

    JBOSS EJB3 Can't find persistence unit?

    Michael Ludlum Newbie

      I've been banging my head with this for hours. Any idea why I'm getting this error? (persistence.xml follows deployment error output below).

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:ear=GJEE.ear,jar=GJEjb.jar,name=NutritionSummary,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:unitName=myunit

      ObjectName: jboss.j2ee:ear=GJEE.ear,jar=GJEjb.jar,name=UserSessionBean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:unitName=myunit

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: persistence.units:unitName=myunit
      State: NOTYETINSTALLED
      Depends On Me:
      jboss.j2ee:ear=GJEE.ear,jar=GJEjb.jar,name=NutritionSummary,service=EJB3
      jboss.j2ee:ear=GJEE.ear,jar=GJEjb.jar,name=UserSessionBean,service=EJB3


      My persistence.xml is:


      <persistence-unit name="myunit">
      <jta-data-source>java:/MySQLLocalDS</jta-data-source>
      usl.gj.ejb.session.NutritionSummary
      usl.gj.ejb.session.UserSessionBean






      </persistence-unit>