0 Replies Latest reply on Feb 20, 2012 7:48 AM by Ashwin Jayaram

    JBoss 5 Missing Dependencies for Persistence Unit JPA 2.0

    Ashwin Jayaram Newbie

      I am doing a Spring JPA 2.0 Hibernate project on JBoss 5.1GA. I also have the *-ds.xml on thee deploy folder which has the datasource HedgeManagementDS. I am deploying my project as a war file and the meta-inf/persistence.xml is in the war under web-inf folder. However when I run JBoss, it states the error:



        Deployment "persistence.unit:unitName=#restEasyPersistenceUnit" is missing the following dependencies:

          Dependency "jboss.jca:name= java:HedgeManagementDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name= java:HedgeManagementDS,service=DataSourceBinding' **")



        Deployment "jboss.jca:name= java:HedgeManagementDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name= java:HedgeManagementDS,service=DataSourceBinding' **




      My persistence.xml has the snippet among other things


      <persistence-unit name="restEasyPersistenceUnit" transaction-type="JTA">
        <jta-data-source> java:/HedgeManagementDS</jta-data-source>



      Must I setup a resource-ref in my web.xml and jboss.xml ? If so where must I put my jboss.xml  ? Or what exactly is the problem.



      Kindly advise.