Randy Nott [
http://community.jboss.org/people/rnott] created the discussion
"Re: ClassCastException with Infinispan using multiple applications"
To view the discussion, visit:
http://community.jboss.org/message/637575#637575
--------------------------------------------------------------
I'm still getting ClassCastException after applying this change although I do appear
to be using a classloader aware cache implementation now (
org.jboss.as.clustering.infinispan.ClassLoaderAwareCache). I have also tried removing CDI
from the equation by fetching the cache from the container on demand rather than using
injection. Casting continues to fail, so it would seem this is not a CDI issue.
It would appear that values stored in the cache are not serialized/materialized in my case
although the value does implement Serializable, which would be a requirement for a shared
cache. I'll put together a simplifiled test environment and try to determine why this
is not the case.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/637575#637575]
Start a new discussion in JBoss AS 7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]