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.