orm modules conflict with infinispan modules for wildfly 10

Description

The org.hibernate.infinispan module load the infinispan module which load a hibernate module in main slot. this cause hibernate unable to load infinispan provider.
I try to make a workaround by jboss-deployment-structure.xml, but failed.

update:
I found the infinispan module is loaded before deployment. Because it is configured by the standalone.xml. I don't know how to configure it in the deployment package. And in the default standalone.xml, infinispan cache for hibernate use the hibernate infinispan module of main slot. This cause the problem. I don't know how to change this behavior except changing the standalone.xml.

Environment

wildfly 10.1.0.Final

Status

Assignee

Unassigned

Reporter

Xj Chen

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.1.12

Components

Affects versions

5.1.12

Priority

Major