AbstractMethodError when creating typed query with Hibernate 3.6.3 and JPA 2.0
I'm using Hibernate and JPA for a small project. Somehow when trying to obtain an typed Query, the java.lang.AbstractMethodError: org.hibernate.ejb.EntityManagerImpl.createQuery(Ljava/lang/String;Ljava/lang/Class;)Ljavax/persistence/TypedQuery is thrown; org.hibernate.ejb.EntityManagerImpl is from hibernate-entitymanager-3.3.2.GA.jar . This is not okay throwing the above exception: public Account read(Account entity) { EntityManager em = ManagedEntityManagerFactory.getEntityManager(); String jpql = JPQLGenerator.readAccount(); TypedQuery<Account> typedQuery = em.createQuery(jpql, Account.class