ClassNotFoundException while unmarshalling in JBoss Cache 3 (EAP 5)
Issue
-
Getting ClassNotFoundException when calling Cache.put() method
Caused by: java.lang.ClassNotFoundException: xxx.yyy.MyBean ... at org.jboss.cache.marshall.CacheMarshaller200.objectFromObjectStream(CacheMarshaller200.java:161) at org.jboss.cache.marshall.VersionAwareMarshaller.objectFromByteBuffer(VersionAwareMarshaller.java:210) ...
-
ClassNotFoundException while starting the cache
org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException ... Caused by: org.jboss.cache.CacheException: Unable to fetch state on startup ... Caused by: org.jboss.cache.CacheException: java.lang.ClassNotFoundException: xxx.yy.MyBean at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateTransientState(DefaultStateTransferIntegrator.java:251) at org.jboss.cache.statetransfer.DefaultStateTransferIntegrator.integrateState(DefaultStateTransferIntegrator.java:113) ...
Environment
- JBoss Enterprise Application Platform (EAP)
- 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.