Jboss 7 not Creating Persistence Unit

寵の児 提交于 2019-12-04 15:32:14

Since you're attempting to use Hibernate 4.x packaged in your application, you should instead be setting the jboss.as.jpa.providerModule property to application in your persistence.xml configuration file.

You're better off replacing the Hibernate 4.0 module in AS7, with a newer version though. That way, you dont need to package a JPA provider in your application.

Have a look on this tutorials. I was suing JBoss and Hibernate, so I have added many tutorials about that as it was a really sometime very hard to fix errors:

http://mariemjabloun.blogspot.com/2014/05/integrating-spring-4-and-jboss-eap-62.html

http://mariemjabloun.blogspot.com/2014/03/use-jboss-jpa-21-and-hibernate-43-on.html

ejb3 - persistence jar was present in my lib folder which was conflicting with mu hibernate jpa 2.0 jar . so i added scope provided in my pom.xml . after that class cast exception went away.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!