2 Replies Latest reply on Oct 7, 2009 12:08 AM by Richard Stanford

    java.lang.ClassCastException:entity.InjectedEntityManagerFactory cannot be cast to EntityManagerFactory

    David Roon Newbie

      Hi everyone,
      I am slowly succeeding in creating a basic maven project for Seam.

      I have a little problem.
      It looks like everything is fine but when I try to call my Authenticator bean, I get this exception:
      java.lang.ClassCastException: org.jboss.ejb3.entity.InjectedEntityManagerFactory cannot be cast to javax.persistence.EntityManagerFactory

      I looked on the internet and someone post the same problem and said that it has solved it by noticing that he was using JPA in and JBoss em (something like that) . Here is the post

      He is maybe right but I have no idea what he is talking about. Can anyone explain it to me and how it has solved his problem? could solve mine....

      Thanks in advance

      David Roon