1 of 1 people found this helpful
When you choose a particular version of Hibernate to use witih your application (via your pom.xml), the version that you specify, is only used to compile your application code (the Hibernate version information does not get passed into the application server). Instead the application server tries to match up the persistence provider classname that you specified in the persistence.xml, with available known persistence provider modules. There are persistence.xml properties for hinting that a specific module be used (you don't need to set them usually but its good to know about them).
You could try adding the newer Hibernate jars. Have you looked at switching to AS 7.1? We are using Hibernate 4.0.1 in AS 7.1 (which is pretty close to Hibernate 4.1).
Switching Hibernate to a newer version could be done by:
- Delete as7/modules/org/hibernate/main/*.index files.
- Replace current Hibernate 4.x jars in as7/modules/org/hibernate/main with new ones.
- Update as7/modules/org/hibernate/main/module.xml to use newer Hibernate jar names.
Hi Scott, thanks for providing detailed info. I will investigate this further later.
We cannot upgrade to 7.1 yet, as it seems to make some semantic changes so that the application does not work as is (related to having ejb beans with persistence contexts of differend kind (extended and non-extended)).