The actual problem for me when this error occurs is
The Hibernate-core dependency was not in my EAR package.
By default, he selected jboss.4.2.3 /.../ lib hibernate3.jar.
Just add hibernate-core-3.3.1.GA to the list of dependencies in the EAR packaging.
There was already an override of the bootloaders installed in jboss-app.xml.
The hibernate kernel from hibernateentitymanager-3.4.0.GA is excluded (do not think that this is necessary, since the main part will be 3.3.0.SP1 and will be omitted one way or another).
It worked with some exceptions from existing xml-apis, ejb3-persistence, etc. hibernate-core dependencies.
Finally, the main dependency looked like this.
<dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-core</artifactId> <version>3.3.1.GA</version> <exclusions> <exclusion> <artifactId>ejb3-persistence</artifactId> <groupId>org.hibernate</groupId> </exclusion> <exclusion> <artifactId>jta</artifactId> <groupId>javax.transaction</groupId> </exclusion> <exclusion> <artifactId>persistence-api</artifactId> <groupId>javax.persistence</groupId> </exclusion> <exclusion> <groupId>xml-apis</groupId> <artifactId>xml-apis</artifactId> </exclusion> </exclusions> </dependency>
Note. I do not think cglib is required, this does not apply to this context.
Hope this is helpful to someone.
source share