0 Replies Latest reply on Jun 21, 2006 10:49 AM by Marc Reis

    persistence.xml and hibernate (with ejb3)

    Marc Reis Novice

      Hi,
      I have a problem using the persistence.xml to configure my persistence for a simple ejb3 test app.
      I am using 4.0.4.GA, EJB3(RC7) and hibernate (3.2.0CR2).
      It works fine when I use the config with the hibernate-service.xml and the hibernate.cfg.xml (for the programmatic approach) but configuring with the persistence.xml wont do the job.
      it leads to :

      12:34:54,515 INFO [EJB3Deployer] Deployed: file:/C:/work/_programme/jboss-4.0.4
      .GA-ejb3/server/default/deploy/EJBTest2EJB.jar
      12:34:54,609 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=EJBTest2EJB.jar,unitName=entwDS
       State: NOTYETINSTALLED
       I Depend On:
       jboss.jca:name=jdbc/OLGAENTW,service=ManagedConnectionFactory
      
      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name=jdbc/OLGAENTW,service=ManagedConnectionFactory
       State: NOTYETINSTALLED
       Depends On Me:
       persistence.units:jar=EJBTest2EJB.jar,unitName=entwDS
      


      I posted about this in the ejb3 thread, I guess it wasn?t the right place, but rather than posting it all again, details are here:
      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=84930
      I would appreciate any help!
      Sincerely
      Marc