I have the following persistence.xml file for my mongoDB connection:
<persistence-unit name="mailbox" transaction-type="JTA">
<!-- Use Hibernate OGM provider: configuration will be transparent -->
<provider>org.hibernate.ogm.jpa.HibernateOgmPersistence</provider>
<properties>
<property name="jboss.as.jpa.providerModule" value="org.jboss.as.jpa.hibernate:3"/>
<property name="hibernate.ogm.datastore.provider" value="mongodb" />
<property name="hibernate.ogm.datastore.host" value="localhost" />
<property name="hibernate.ogm.datastore.port" value="27017" />
<property name="hibernate.ogm.mongodb.database" value="mailbox" />
</properties>
</persistence-unit>
but when i call the following line:
com.google.inject.persist.jpa.JpaPersistService.start(JpaPersistService.java:110)
I get the following error:
java.lang.NoClassDefFoundError: org/hibernate/engine/transaction/spi/TransactionFactory
my gradle script has the following line to install the dependency:
compile "javax.transaction:jta:$jtaVersion"
compile "org.hibernate.ogm:hibernate-ogm-mongodb:4.2.0.Final"
Any idea what am I doing wrong as I am new to the hibernate OGM world.
EDITED: I am using the JpaPersistModule JPA persist provider for guice