cloudfoundry-samples/spring-music

Binding Redis service

nevenc opened this issue · 3 comments

When binding Redis service to spring-music app in Cloud Foundry, the app complains about dependencies not found at runtime:

Caused by: java.lang.ClassNotFoundException: org.apache.commons.pool2.impl.GenericObjectPoolConfig

Need to add runtime dependency in build.gradle:
runtime 'org.apache.commons:commons-pool2

@nevenc This issue was fixed in Spring Cloud Connectors 2.0.2.RELEASE. Spring Music hasn't been updated to use that version yet, but that upgrade should fix your issue.

Thanks Scott!