diff options
author | 2023-11-03 15:19:19 +0000 | |
---|---|---|
committer | 2023-11-03 15:50:32 +0000 | |
commit | 4fb19b0a6b3b2a17ffb78ef51091ea87ca9bc2e3 (patch) | |
tree | 382b70e51ea071049130ec764e9f1a73cac74366 /cps-service/src/main | |
parent | d1c366c0966baead527bad3b89aa288d0c6bd12b (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/main')
-rw-r--r-- | cps-service/src/main/java/org/onap/cps/cache/HazelcastCacheConfig.java | 1 |
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 067191b5a..0efabfd3b 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; } |