diff --git a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java index f59c6dbd49ac9..16e1bfa30f575 100644 --- a/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java +++ b/extensions/infinispan-client/runtime/src/main/java/io/quarkus/infinispan/client/runtime/InfinispanClientProducer.java @@ -233,7 +233,7 @@ private ConfigurationBuilder builderFromProperties(Properties properties) { String cacheName = cache.getKey(); InfinispanClientRuntimeConfig.RemoteCacheConfig remoteCacheConfig = cache.getValue(); if (remoteCacheConfig.configurationUri.isPresent()) { - URL configFile = InfinispanClientProducer.class.getClassLoader() + URL configFile = Thread.currentThread().getContextClassLoader() .getResource(remoteCacheConfig.configurationUri.get()); try { builder.remoteCache(cacheName).configurationURI(configFile.toURI());