I have a seam application that was running on Jboss 5. And now we are upgrading it to run on Jboss 7.1.1.Final. I'm running into an issue where container is not able to inject an entity manager using@PersistenceContext
. Part of the application also uses seam managed persistence context which works fine i.e. injection of EntityManager
using @In works. But it cannot inject using@PersistenceContext
. Below is my project structure:
ejb-jar-1.jar
is where @PersistenceContext
is used and where persistence.xml
sits.
I'm using Hibernate 3.4.0.GA. Any suggestions.
main.ear
__META-INF
| |____jboss-deployment-structure.xml
| |____application.xml
| |____jboss-app.xml
| |____MANIFEST.MF
|__lib
| |____somejar.jar
| |____somejar.jar
|__ejb-jar-1.jar
| |____META-INF
| |____persistence.xml
|__ejb-jar-2.jar
|__jboss-seam-2.2.1.CR2.jar
|__commons-lang-2.4.jar
|__commons-codec-1.1.jar
|__jasypt-1.6.jar
|__app-war.war
|____components.xml