summaryrefslogtreecommitdiffstats
path: root/cps-service/src
diff options
context:
space:
mode:
authordanielhanrahan <daniel.hanrahan@est.tech>2023-11-03 15:19:19 +0000
committerDaniel Hanrahan <daniel.hanrahan@est.tech>2023-11-03 15:50:32 +0000
commit4fb19b0a6b3b2a17ffb78ef51091ea87ca9bc2e3 (patch)
tree382b70e51ea071049130ec764e9f1a73cac74366 /cps-service/src
parentd1c366c0966baead527bad3b89aa288d0c6bd12b (diff)
[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 <daniel.hanrahan@est.tech> Change-Id: I02e2d19d9f668f0c4af36e9061e68f9b9ddb9434
Diffstat (limited to 'cps-service/src')
-rw-r--r--cps-service/src/main/java/org/onap/cps/cache/HazelcastCacheConfig.java1
1 files changed, 1 insertions, 0 deletions
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;
}