wood burning stoves*
The moose likes JBoss/WildFly and the fly likes org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider" Watch "org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider" New topic
Author

org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

gourav chouhan
Ranch Hand

Joined: Apr 02, 2010
Posts: 74
Hi Friends
I was migrating my application from Jboss 5 to jboss 6 but got some problem i googled but couldnt find any solution error log is below :-


Thanks
Gourav
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Didi you package any of the Hibernate JARs with your app?


JBoss In Action
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider
 
Similar Threads
JPA + JBoss = java.lang.ClassCastException
problem in setting mySql as default database server
jboss 5.0.1GA deployment error
Encript the password in jboss
java.lang.VerifyError :: in AuthenticationPolicyBean; getPolicyInfo() of jbosssx.jar