hibernatetomcatjpagvnix

gvNIX/ROO 1.4.1 - NoSuchMethodError avax.persistence.Table.indexes() when adding in Datatables


In my project I am successful adding components up to adding in Datatables (web mvc datatables setup). When I do, I get the above exception when deploying the application to Tomcat using Oracle DB with the following information:

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in file [C:\Users\prparker\workspaceSTS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\smdms2\WEB-INF\classes\META-INF\spring\applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: javax.persistence.Table.indexes()[Ljavax/persistence/Index;

gvNIX has included the libraries Hibernate Core 4.3.6 and JPA 2.1 1.0.0Final so I don't think it is the issue that has been brought up before.

Thanks for any information.


Solution

  • Check the effective dependencies or the transitive dependencies of your pom.xml. I think you have an inhereted or transitive dependency that includes JPA 2.0 in your project. Exclude it from your pom.xml