This content has been marked as final.
Show 2 replies
-
1. Re: org.hibernate.internal.SessionImpl cannot be cast to org.hibernate.classic.Session
smarlow Jul 31, 2012 9:51 AM (in response to machararao)Which version of Hibernate search are you using? Show us the contents of your application deployment archive (e.g. jar tf yourAppName.ear).
-
2. Re: org.hibernate.internal.SessionImpl cannot be cast to org.hibernate.classic.Session
yunshi Oct 5, 2012 12:07 PM (in response to machararao)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.