This is fixed in AS 7.1.2 - essentially the infinispan subsystem configures infinispan to use a JBoss Modules aware marshalling configuration. You can workaround this in previous releases by wrapping your deployment specific objects in a MarshalledValue. The MarshallingContext should be configured with a JBoss Marshalling class resolver that can resolve classes specific to your deployment. See the following classes for details: