My application is using Hibernate3 but Wildfly comes with Hibernate4, and this causing antlr conflict while deployment of the application. I searched the net and find out the way to use Hibernate 3. In my persistence file I added a line <property name="jboss.as.jpa.providerModule" value="org.hibernate:3"></property> and then again started the deployment but failed. Now it is complaining about the "Failed to define class org.jboss.as.jpa.hibernate3.JBossAppServerJtaPlatform in Module "org.jboss.as.jpa.hibernate:3". Can anybody please help me sort out this problem.