Since wildfly 3.x support is removed from default Wildfly 10, and hibernate 3.6 is compliant with JPA 2.1;
i already have the hibernate jars included in the app and also excluded the Wildfly provided hibernate using jboss-deployment-structure.xml
However, the application is failed either at JNDI stage. or some required jars are not available / conflicting
Getting this exception:
javax.persistence.PersistenceException: [PersistenceUnit: org.myapp] Unable to build EntityManagerFactory
Neela Joy wrote:hibernate 3.6 is compliant with JPA 2.1
Can you quote your sources? Because according to this, Hibernate 4.3 was the first Hibernate version to be 2.1 compliant.
But why not go with the Hibernate version that comes with WildFly? It comes with Hibernate 5.0.7.Final (as found in modules/system/layers/base/org/hibernate/main), which is a lot more recent than 3.6. So just include Hibernate 5.0.7.Final as a provided dependency.