0 Replies Latest reply on Sep 16, 2013 3:24 PM by Ron Si

    JBOSS 7.1.1.Final Container Managed Persistence Context @PersistenceContext not injecting

    Ron Si Newbie

      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.


      |   |____jboss-deployment-structure.xml
      |   |____application.xml
      |   |____jboss-app.xml
      |   |____MANIFEST.MF
      |   |____somejar.jar
      |   |____somejar.jar
      |   |____META-INF
      |   |____persistence.xml