Hi
this are my modules with its respective jars
../wildfly-8.1.0.Final/modules/system/layers/base/org/hibernate/ogm/mongodb/main
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate OGM, Domain model persistence for NoSQL datastores
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<module xmlns="urn:jboss:module:1.1" name="org.hibernate.ogm.mongodb" slot="main">
<resources>
<resource-root path="hibernate-ogm-mongodb-4.1.0.Beta4.jar" />
<resource-root path="mongo-java-driver-2.10.1.jar" />
</resources>
<dependencies>
<module name="org.hibernate" export="true" services="import" slot="ogm" />
<module name="org.hibernate.commons-annotations"/>
<module name="javax.api" />
<module name="javax.persistence.api" />
<module name="javax.transaction.api" />
<module name="javax.validation.api" />
<module name="org.jboss.logging" />
<module name="org.parboiled" />
</dependencies>
</module>
../wildfly-8.1.0.Final/modules/system/layers/base/org/hibernate/ogm
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Hibernate OGM, Domain model persistence for NoSQL datastores
~
~ License: GNU Lesser General Public License (LGPL), version 2.1 or later
~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
-->
<module xmlns="urn:jboss:module:1.1" name="org.hibernate" slot="ogm">
<resources>
<resource-root path="hibernate-ogm-core-4.1.0.Beta4.jar" />
<resource-root path="hibernate-ogm-infinispan-4.1.0.Beta4.jar" />
</resources>
<dependencies>
<module name="org.hibernate" export="true" />
<module name="org.hibernate.commons-annotations" />
<module name="org.hibernate.hql" slot="1.0.0.CR1" export="true" services="export" optional="true" />
<module name="org.hibernate.search.orm" export="true" services="export" optional="true" />
<module name="javax.api" />
<module name="javax.persistence.api" />
<!-- Exporting as one of its types is exposed via Log which is extended in other modules -->
<module name="javax.transaction.api" export="true" />
<module name="javax.validation.api" />
<module name="org.dom4j" />
<module name="org.infinispan" services="export" export="true" optional="true" />
<module name="org.infinispan.commons" optional="true" />
<module name="org.jboss.as.jpa.hibernate" slot="4" optional="true" />
<module name="org.jboss.logging" />
<!-- Allow Hibernate ORM to load com.arjuna.ats.jta.TransactionManager -->
<module name="org.jboss.jts" export="true" />
</dependencies>
</module>
my jboss-deployment-structure.xml
Code:
<jboss-deployment-structure>
<deployment>
<dependencies>
<module name="org.hibernate" slot="ogm" services="export" />
<module name="org.hibernate.ogm.mongodb" slot="main" services="export" />
</dependencies>
</deployment>
</jboss-deployment-structure>