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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
