I have a Seam 2 application running on JBoss AS 6. Why is it that the following code works ok:
Code:
final EntityManager entityManager = (EntityManager) Component.getInstance("entityManager");
final List<Category> categoryList = entityManager.createQuery(Category.SELECT_ALL_QUERY).getResultList();
But this code results in a AbstractMethodError exception being thrown:
Code:
final EntityManager entityManager = (EntityManager) Component.getInstance("entityManager");
final List<Category> categoryList = entityManager.createQuery(Category.SELECT_ALL_QUERY, Category.class).getResultList();
It has me completely stumped.