[jboss-dev-forums] [JBoss AS 7 Development] - Re: ClassCastException with Infinispan using multiple applications

Paul Ferraro do-not-reply at jboss.com
Tue Jun 19 20:58:14 EDT 2012


Paul Ferraro [https://community.jboss.org/people/pferraro] created the discussion

"Re: ClassCastException with Infinispan using multiple applications"

To view the discussion, visit: https://community.jboss.org/message/742894#742894

--------------------------------------------------------------
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:

 https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering/MarshalledValue.java
 https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering/MarshalledValueFactory.java
 https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering/MarshallingContext.java
 https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering/SimpleMarshalledValue.java
 https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering/SimpleMarshalledValueFactory.java
 https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering/HashableMarshalledValue.java
 https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering https://github.com/jbossas/jboss-as/tree/7.1.1.Final/clustering/api/src/main/java/org/jboss/as/clustering/HashableMarshalledValueFactory.java
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/742894#742894]

Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120619/8cf11596/attachment.html 


More information about the jboss-dev-forums mailing list