Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
434 views
in Technique[技术] by (71.8m points)

serialization - WIldFly 21 and Infinispan cache

I am in the process of switching from WildFly 17 to 21. Everything runs just fine. But when I try to run a cluster with several nodes I do have problems with Infinispan and serialization. I get errors like there is no marshaller defined (not registered) for some classes that have to be transfered to another node. This is probably because of the new Infinispan version and the new way of marshalling objects. I think I can define a JavaSerilizationMarshaller for my classes. But how do I do this via standalone.xml where my cache-container and caches are defined? Or what other approach can I use? Like defining the caches via a separate infinispan configuration file. A first attempt using the latter lead to some "org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry" caused by "ClassNotFoundException: org.jboss.threads.management.ManageableThreadPoolExecutorService".

Any idea what to do?

Addition: An attempt to use the deprecated annotation "SerializeWith" on SessionInfoImpl class leads to this exception:

Caused by: java.lang.ClassNotFoundException: net.mycompany.myapp.cache.SessionInfoImpl$SessionInfoExternalizer from [Module "org.wildfly.clustering.server" version 21.0.2.Final from local module loader @52d239ba (finder: local module finder @315f43d5 (roots: /opt/wildfly/modules,/opt/wildfly/modules/system/layers/base))]

Thanks in advance.

--Heiko


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Qi-U Community for programmer and developer-Open, Learning and Share
...