[jboss-dev-forums] [JBoss AS 7 Development] - Re: org.hibernate.internal.SessionImpl cannot be cast to org.hibernate.classic.Session

yunshi tan do-not-reply at jboss.com
Fri Oct 5 12:07:30 EDT 2012


yunshi tan [https://community.jboss.org/people/yunshi] created the discussion

"Re: org.hibernate.internal.SessionImpl cannot be cast to org.hibernate.classic.Session"

To view the discussion, visit: https://community.jboss.org/message/763526#763526

--------------------------------------------------------------
I had this problem before.

The cause is :
In fact I use Hibernate 3 instead of Hibernate 4 and I forget to add 
<property name=+"jboss.as.jpa.providerModule"+ value=+"org.hibernate:3"+ /> 
into my persistence.xml.

So after adding this property everything goes well.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/763526#763526]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20121005/8aca1258/attachment.html 


More information about the jboss-dev-forums mailing list