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:
DEPLOYMENTS MISSING DEPENDENCIES:
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' **")
DEPLOYMENTS IN ERROR:
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">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<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.