在我的项目中,我成功地添加了组件,直到添加了Datatables (web数据表设置)。当我使用Oracle将应用程序部署到Tomcat时,我得到了上述异常,并提供了以下信息:
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包含了Hibernate、Core4.3.6和JPA2.11.0.0Final,所以我不认为这是之前提到的问题。
谢谢你提供的任何信息。
发布于 2015-08-06 06:57:10
检查pom.xml的有效依赖项或传递依赖项。我认为您有一个继承或传递的依赖关系,其中包括项目中的JPA2.0。从您的pom.xml中排除它
https://stackoverflow.com/questions/31817907
复制相似问题