title: Hazelcast can't deserialize an enum class
body: <p>I'm having some problems with Hazelcast deserialize. I don't know why it is happening to me.</p>
  
  <p>When I build my project with Maven I can see the next error code:</p>
  
  <pre><code>GRAVE: Failed to execute callback:     com.hazelcast.client.proxy.ClientMapProxy$1@382710c7! Request:     com.hazelcast.map.impl.client.MapGetRequest@cbe959e, response: HeapData{type=-    25,
  hashCode=1128451374, partitionHash=1128451374, dataSize=89, heapCost=117}
  com.hazelcast.nio.serialization.HazelcastSerializationException: Failed to deserialize enum: com.grupo.exception.ExceptionCauseEnum
      at     com.hazelcast.nio.serialization.DefaultSerializers$EnumSerializer.read(DefaultSerializers.java:243)
      at com.hazelcast.nio.serialization.DefaultSerializers$EnumSerializer.read(DefaultSerializers.java:225)
      at com.hazelcast.nio.serialization.StreamSerializerAdapter.toObject(StreamSerializerAdapter.java:65)
      at com.hazelcast.nio.serialization.SerializationServiceImpl.toObject(SerializationServiceImpl.java:260)
      at com.hazelcast.client.spi.impl.ClientCallFuture$1.run(ClientCallFuture.java:292)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)
      at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)
  Caused by: java.lang.ClassNotFoundException: com.grupo.exception.ExceptionCauseEnum
      at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
      at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
      at com.hazelcast.nio.ClassLoaderUtil.tryLoadClass(ClassLoaderUtil.java:124)
      at com.hazelcast.nio.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:113)
      at com.hazelcast.nio.serialization.DefaultSerializers$EnumSerializer.read(DefaultSerializers.java:241)
      ... 9 more
  </code></pre>
  
  <p>ExceptionCauseEnum is in my classpath.</p>
  
  <p>My <strong>Hazelcast instance configuration</strong> (just in case it is useful):</p>
  
  <pre><code>&lt;hz:hazelcast id="instance"&gt;
      &lt;hz:config&gt;
          &lt;hz:group name="${name}"
              password="${pass}" /&gt;
  
          &lt;hz:network port="23456"
              port-auto-increment="true"&gt;
              &lt;hz:join&gt;
                  &lt;hz:multicast
                      enabled="false"
                      multicast-group="${multicast-group}"
                      multicast-port="${multicast-port}" /&gt;
                  &lt;hz:tcp-ip enabled="true"&gt;
                      &lt;hz:interface&gt;127.0.0.1&lt;/hz:interface&gt;
                  &lt;/hz:tcp-ip&gt;
              &lt;/hz:join&gt;
              &lt;hz:interfaces enabled="false"&gt;
                  &lt;hz:interface&gt;&lt;/hz:interface&gt;
              &lt;/hz:interfaces&gt;
          &lt;/hz:network&gt;
  
          &lt;hz:map name="myMap" max-size="5000" max-idle-seconds="3600" 
              time-to-live-seconds="7200" eviction-percentage="25"
              eviction-policy="LRU" /&gt;
      &lt;/hz:config&gt;
  &lt;/hz:hazelcast&gt;
  </code></pre>
  
  <p>Although Maven throws me that error, it builds correctly.</p>
  
  <p>Any idea what is happening and what am I doing wrong?</p>
  
  <p>Thanks in advance.</p>