Hello.
I'm struggling with JBOss and I'm stuck on a problem which seems trival to fix but it turns out I can't. When I try to deploy a simple java web app I encounter an exception:
org.hibernate.ejb.HibernatePersistence cannot be cast to avax.persistence.spi.PersistenceProvider
I know that this is a problem with having more then one persistence.jar. So in my pom I did something like that:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>3.4.0.GA</version>
<exclusions>
<exclusion>
<groupId>org.hibernate</groupId>
<artifactId>ejb3-persistence</artifactId>
</exclusion>
</dependency>
But I'm unlucky with it. I still get the error. Could anybody help me kindly to solve this task?
Agata