From 4fb19b0a6b3b2a17ffb78ef51091ea87ca9bc2e3 Mon Sep 17 00:00:00 2001 From: danielhanrahan Date: Fri, 3 Nov 2023 15:19:19 +0000 Subject: [BUG] Set Hazelcast class loader ClassNotFoundException is being thrown during CM-handle registration when running the cps-application JAR. This fixes the issue by using the class loader for the CPS classes. Issue-ID: CPS-1933 Signed-off-by: danielhanrahan Change-Id: I02e2d19d9f668f0c4af36e9061e68f9b9ddb9434 --- cps-service/src/main/java/org/onap/cps/cache/HazelcastCacheConfig.java | 1 + 1 file changed, 1 insertion(+) (limited to 'cps-service') diff --git a/cps-service/src/main/java/org/onap/cps/cache/HazelcastCacheConfig.java b/cps-service/src/main/java/org/onap/cps/cache/HazelcastCacheConfig.java index 067191b5a5..0efabfd3b0 100644 --- a/cps-service/src/main/java/org/onap/cps/cache/HazelcastCacheConfig.java +++ b/cps-service/src/main/java/org/onap/cps/cache/HazelcastCacheConfig.java @@ -63,6 +63,7 @@ public class HazelcastCacheConfig { } config.setClusterName(clusterName); + config.setClassLoader(org.onap.cps.spi.model.Dataspace.class.getClassLoader()); updateDiscoveryMode(config); return config; } -- cgit 1.2.3-korg