Infinispan 5.1.2 and 5.2.x introduce a change where the eviction strategy is set to LIRS if maxEntries is set without specifying a strategy. This causes an issue with AS7 because:
clustering/infinispan/src/main/resources/infinispan-defaults.xml: <eviction strategy="NONE" maxEntries="10000"/>
so users get eviction enabled on their caches unknowingly. I suggest modifying the above to remove the maxEntries attribute.