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!