Thank you that worked when adding it to the classpath. I would like if possible to put it in an external location as well. I tried doing this by specifying the command line argument in my pom.xml file:
Caused by: com.hazelcast.core.HazelcastException: com.hazelcast.core.HazelcastException: Config file at 'C:\GitProjects\myApp\file:\C:\ep_conf\ep-elm\hazelcast.xml' doesn't exist.
at com.hazelcast.config.XmlConfigLocator.<init>(XmlConfigLocator.java:68)
at com.hazelcast.config.XmlConfigBuilder.<init>(XmlConfigBuilder.java:179)
at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:128)
at com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:91)
at org.springframework.boot.autoconfigure.hazelcast.HazelcastServerConfiguration$HazelcastServerConfigFileConfiguration.hazelcastInstance(HazelcastServerConfiguration.java:56)
at org.springframework.boot.autoconfigure.hazelcast.HazelcastServerConfiguration$HazelcastServerConfigFileConfiguration$$EnhancerBySpringCGLIB$$10e6a30e.CGLIB$hazelcastInstance$0(<generated>)
at org.springframework.boot.autoconfigure.hazelcast.HazelcastServerConfiguration$HazelcastServerConfigFileConfiguration$$EnhancerBySpringCGLIB$$10e6a30e$$FastClassBySpringCGLIB$$4bbf955d.invoke(<generated>)
It seems it has taken the path of where my project is located in and append the hazelcast.config system property passed by the command line therefore creating an invalid path. Is there a way to resolve that?
Kind Regards,
Sachin Sharma