This content has been marked as final.
Show 2 replies
-
1. Re: Use Hibernate bundled in War in wildfly 8.1
smarlow Nov 19, 2014 2:48 PM (in response to cyberoblivion)Enable TRACE logging for org.jboss.as.jpa so you can tell which persistence provider is used (see doc here). The JPA container deployment subsystem will load the persistence provider that is included in the application and should prefer that over the default Hibernate version. Which version of Hibernate are you trying to include? You can show us the contents of your war (jar tf yourapp.war) if you like.
You will need to add a persistence unit hint (jboss.as.jpa.providerModule=application) as shown in this example, that lets the JPA container know that your application will not use the standard Hibernate jar.
-
2. Re: Use Hibernate bundled in War in wildfly 8.1
cyberoblivion Nov 20, 2014 11:51 AM (in response to smarlow)when I add the persistence hint:It fixed my issue thanks