Hi,
I am using the @PersistenceContext annotation to inject the EntityManager. But i am the below error during the Jboss 5.1 startup:
EPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:ear=pvo2.ear,jar=pvo2-persistence-1.0.jar,name=AdminsecurityManagerImpl,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:ear=pvo2.ear,jar=pvo2-persistence-1.0.jar,name=AdminsecurityManagerImpl,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'Class:javax.persistence.EntityManager' **")
Deployment "jboss.j2ee:ear=pvo2.ear,jar=pvo2-persistence-1.0.jar,name=AdminsecurityManagerImpl,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:ear=pvo2.ear,jar=pvo2-persistence-1.0.jar,name=AdminsecurityManagerImpl,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN jboss.j2ee:ear=pvo2.ear,jar=pvo2-persistence-1.0.jar,name=AdminsecurityManagerImpl,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'Class:javax.persistence.EntityManager' **
The above error doesn't give me much to go after. Can some one please help me?
Thanks
Anil
How your deployment descriptor is?
Do you have packed an ear with the persistence.jar in it?
If yes you must use the <jaf-file> element in your persistence XML that hibernate scan your persistence for Entity annotations.