I am using JSF2 with Pure JPA2. But the problem is with entityManager,
@PersistenceContext
private EntityManager entityManager;
Here enti
Tomcat is not a Java EE container, so there are limitations related to container managed factories and dependency injection. Among others, you need to manually create the EntityManagerFactory and the EntityManager.
Hibernate documentation isn't clear on that, so here's the Eclipselink one: Tomcat/JPA tutorial. Check the "Limitations to JPA" section, this applies as good to Hibernate.