0 Replies Latest reply on Jul 15, 2010 10:27 AM by Igor Bo

    JPA + JBoss = java.lang.ClassCastException

    Igor Bo Newbie

      Dear experts,


      I've developed a web application  that uses JPA  provided by Hibernate. It is  deployed to Tomcat 6 and  everything work  perfectly but now I need to migrate to JBoss. While  deploying to JBoss I  get following error:


      java.lang.ClassCastException:   org.hibernate.ejb.HibernatePersistence cannot be cast to   javax.persistence.spi.PersistenceProvider


      Details in  the Persistence section: http://community.jboss.org/thread/154264


      Thank  you in advance for any help!