I'm getting the following exception from the CIL in my DD4T 2 Java project that has been upgraded to Web 8.5
Could not create CONTENT service client. Error:Unable to load content service url!
Digging into the logs I found the exception to be:
2017-05-19 15:15:27,965 WARN BaseClientConfigurationLoader - Unable to resolve ContentServiceCapability using DiscoveryService: http://stg-discovery:8082/discovery.svc. javax.cache.CacheException: Multiple CachingProviders have been configured when only a single CachingProvider is expected at javax.cache.Caching$CachingProviderRegistry.getCachingProvider(Caching.java:376) ~[cache-api-1.0.0.jar:na] at javax.cache.Caching$CachingProviderRegistry.getCachingProvider(Caching.java:351) ~[cache-api-1.0.0.jar:na] at javax.cache.Caching.getCachingProvider(Caching.java:142) ~[cache-api-1.0.0.jar:na] at com.sdl.web.client.cache.GeneralCacheProvider.getCacheManager(GeneralCacheProvider.java:138) ~[discovery-client-lightweight-8.5.0-1014.jar:8.5.0-1014]
I'm not sure where these Caching providers are configured.
I've tried adding a few things to my application.properties to hint using the EhCache provider.
Is something in DD4T 2 conflicting with the CIL here? Or am I barking up the wrong tree?
Edit: I've tried setting the DD4T cache provider to the NoCacheProvider but it's not helped.
Edit: Seems like this is caused by 2 versions of Ehcache. Still trying to figure out how to fix the dependencies to work together.