I still haven't found a proper solution to the classloading issue.
After studying infinispan 6 and the modules available, I have decided to trash everything and start anew with infinispan 7. It is clear from the bad documentation examples (code doesn't work), the very bad jboss module dependencies provided on infinispan.org (compared to infinispan 7) and the difference in javax cache api implementations that infinispan 6 was never meant to run according to jsr 107 specs on a jboss 7 server.
I will take my chances with the beta version.
indeed we are not maintaining JBoss 7, it was renamed WildFly. Please download WildFly 8.1 : Downloads · WildFly . It comes with Infinispan 6 integrated, and next version is planned to have Infinispan 7.
I wouldn't blame documentation for not working on older versions, but if you find examples aiming at WildFly usage please point us to the mistakes and we'll get them fixed.
In my current project, I also wanted to use Inf 6.0. But I'm stuck with JBoss AS 7.1 so I was unable to upgrade to Wildfly to have it all integrated by experts. So instead I tried by myself to upgrade Inf inside JBoss and had all sorts of problems.
Now, these problems were probably (definitely) self-inflicted, my own fault and lack of knowledge / experience. But I found that I could just use infinispan directly in my code and bypass the JBoss integration altogether. I included the few required jars in my war file (something like 7 of them), made sure there were no infinispan elements in my standalone.xml file, and put the infinispan / jgroups config files in the $JBOSS/standalone/configuration directory. Seems to work pretty well...