wildflyjava-17hibernate3wildfly-28

Using Hibernate3 and Java 17 in Wildfly 28/30


I would like to know if anyone has been successful in using Hibernate3 and Java 17 with Wildfly 28 or 30 please? I have read posts which mention adding an additional folder to the modules directory and placing all the hibernate related jars in there. Also added in jboss-deployment-structure.xml as well as change the provider module in persistence.xml to use this new module.

This, so far has not been successful. Can anyone please give their assistance/input relating to the above please?

  1. Added a module in the modules directory of wildfly under org/hibernate/3. Have the relevant jars called in the module.xml present in the '3' directory.
  2. Added jboss-deployment-structure.xml under META-INF of .ear file
  3. Changed persistence.xml to have

My jboss-deployment-structure has the exclusions tag with modules "org.hibernate" slot="main", "org.hibernate.validator" slot="main"


Solution

  • That will not work. Hibernate 3 does not support Jakarta Persistence 3.1 which is part of Jakarta EE 10. Both WildFly 28 and 30 are Jakarta EE 10 containers.