diff --git a/org.idempiere.hazelcast.service/src/org/idempiere/hazelcast/service/Activator.java b/org.idempiere.hazelcast.service/src/org/idempiere/hazelcast/service/Activator.java index d3e0f222e3..b644e7b80b 100644 --- a/org.idempiere.hazelcast.service/src/org/idempiere/hazelcast/service/Activator.java +++ b/org.idempiere.hazelcast.service/src/org/idempiere/hazelcast/service/Activator.java @@ -110,11 +110,14 @@ public class Activator implements BundleActivator { if (file != null && file.exists()) { try { Config config = new FileSystemXmlConfig(file); + config.setClassLoader(getClass().getClassLoader()); hazelcastInstance = Hazelcast.newHazelcastInstance(config); return; } catch (FileNotFoundException e) {} } - hazelcastInstance = Hazelcast.newHazelcastInstance(null); + Config config = new Config(); + config.setClassLoader(getClass().getClassLoader()); + hazelcastInstance = Hazelcast.newHazelcastInstance(config); } }); }