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.
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.