I'm getting an error while trying to deploy my application on Wildfly 8:
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011445: Failed to get adapter for persistence provider 'org.hibernate.jpa.HibernatePersistenceProvider'
My persistence.xml:
<persistence-unit name="budget-ds" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
<jta-data-source>java:jboss/budget-ds</jta-data-source>
<properties>
<property name="jboss.as.jpa.providerModule" value="org.hibernate"/>
<property name="jboss.as.jpa.adapterModule" value="org.jboss.as.jpa.hibernate:4"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect" />
<property name="hibernate.show_sql" value="true" />
<property name="hibernate.format_sql" value="true" />
<property name="hibernate.hbm2ddl.auto" value="update" />
</properties>
</persistence-unit>
I'm using MySQL 5.5, Hibernate 4.1 and Wildfly 8.
Does anyone know the cause of the error, and how to solve it?