diff --git a/hibernate-jcache/src/main/java/org/hibernate/cache/jcache/internal/JCacheRegionFactory.java b/hibernate-jcache/src/main/java/org/hibernate/cache/jcache/internal/JCacheRegionFactory.java index 05102e785c..ed4e30f50f 100644 --- a/hibernate-jcache/src/main/java/org/hibernate/cache/jcache/internal/JCacheRegionFactory.java +++ b/hibernate-jcache/src/main/java/org/hibernate/cache/jcache/internal/JCacheRegionFactory.java @@ -206,10 +206,10 @@ public class JCacheRegionFactory extends RegionFactoryTemplate { final CacheManager cacheManager; final URI cacheManagerUri = getUri( settings, properties ); if ( cacheManagerUri != null ) { - cacheManager = cachingProvider.getCacheManager( cacheManagerUri, getClassLoader( cachingProvider )); + cacheManager = cachingProvider.getCacheManager( cacheManagerUri, getClassLoader( cachingProvider ) ); } else { - cacheManager = cachingProvider.getCacheManager(); + cacheManager = cachingProvider.getCacheManager( cachingProvider.getDefaultURI(), getClassLoader( cachingProvider ) ); } return cacheManager; }