I have configured a PhysicsDS datasource. It can be deployed, the database is created.

I try to use it in my persistence.xml. But it does not deploy.

I get the error:

DEPLOYMENTS MISSING DEPENDENCIES:

Deployment "persistence.unit:unitName=physics.ear/physics-ejb.jar#physicsdb" is missing the following dependencies:

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

DEPLOYMENTS IN ERROR:

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

at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(

) [:2.2.2.GA]

Must I add more information in the persistence.xml? I does not understand it. Is it meaning a datasourcebinbding property is missing?

Deployment "persistence.unit:unitName=physics.ear/physics-ejb.jar#physicsdb" is missing the following dependencies:

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

DEPLOYMENTS IN ERROR:

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

at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(

DeployersImpl.java:1370

) [:2.2.2.GA]

at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(

DeployersImpl.java:1316

) [:2.2.2.GA]

at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(

MainDeployerImpl.java:968

) [:2.2.2.GA]

at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(

MainDeployerPlugin.java:82

) [:6.1.0.Final]

at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(

ProfileControllerContext.java:138

) [:0.2.2]

at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(

HDScanner.java:246

) [:0.2.2]

at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(

HDScanner.java:192

) [:0.2.2]

at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(

TwoPCActionWrapper.java:57

) [:0.2.2]

at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(

AbstractTwoPhaseModificationAction.java:74

) [:0.2.2]

at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(

AbstractTwoPhaseModificationAction.java:95

) [:0.2.2]

at org.jboss.profileservice.management.ModificationSession.prepare(

ModificationSession.java:87

) [:0.2.2]

at org.jboss.profileservice.management.AbstractActionController.internalPerfom(

AbstractActionController.java:234

) [:0.2.2]

at org.jboss.profileservice.management.AbstractActionController.performWrite(

AbstractActionController.java:213

) [:0.2.2]

at org.jboss.profileservice.management.AbstractActionController.perform(

AbstractActionController.java:150

) [:0.2.2]

at org.jboss.profileservice.management.AbstractActionController.perform(