Hi guys.
I am using Hibernate with Spring deploying to WebLogic 10.3.5. When I attempt to deploy the app, I get the following error:
Code:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactoryBean' defined in class path resource [com/consology/leaveapp/config/HibernateConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax/persistence/OneToMany.orphanRemoval()Z
I have read that this can be caused by including JPA 1 jars as well as JPA 2, but the only jars I have I received via maven:
Code:
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.1.7.Final</version>
</dependency>
Could there be any other possible problems?
Thanks