lightspeed-hospitality / hazelcast-aws-ecs

Discovery strategy for AWS ECS
Apache License 2.0
0 stars 0 forks source link

Can't start hazelnut #4

Closed pavelber closed 5 years ago

pavelber commented 5 years ago

Using provided config file, just replaced cluster name and service name and got exception:

Caused by: com.hazelcast.config.properties.ValidationException: There is no discovery strategy factory to create 'DiscoveryStrategyConfig{properties={cluster=test, service=vertx-cluster}, className='com.ikentoo.hazelcast.AwsEcsDiscoveryStrategy', discoveryStrategyFactory=null}' Is it a typo in a strategy classname? Perhaps you forgot to include implementation on a classpath?

Checked that com.ikentoo.hazelcast.AwsEcsDiscoveryStrategy actually IS in the classpath

pavelber commented 5 years ago

Fixed by using service merge in shadowJarPlugin:

shadowJar { mergeServiceFiles() }