JBoss Community

Re: JBOSS 5.1 Server -> org.hibernate.ejb.HibernatePersistence cannot be cast to javax.persistence.spi.PersistenceProvider

created by Fabian Krüger in Beginner's Corner - View the full discussion

Hello Amar,

 

without further analysis it seems that you deploy jars provided by JBoss (like hibernate3.jar) within your WEB-INF/lib folder.

Removing the provided Jars from your WebApp should solve it.

 

Cheers,

Fabian

Reply to this message by going to Community

Start a new discussion in Beginner's Corner at Community