diff --git a/runtime/src/main/java/io/quarkiverse/cxf/CxfClientProducer.java b/runtime/src/main/java/io/quarkiverse/cxf/CxfClientProducer.java index 5501ad626..dfe238376 100644 --- a/runtime/src/main/java/io/quarkiverse/cxf/CxfClientProducer.java +++ b/runtime/src/main/java/io/quarkiverse/cxf/CxfClientProducer.java @@ -107,7 +107,7 @@ private void addToCols(String className, List> co private void addToCols(String className, List cols, Class clazz) { Class cls; try { - cls = Class.forName(className).asSubclass(clazz); + cls = Class.forName(className, false, Thread.currentThread().getContextClassLoader()).asSubclass(clazz); } catch (ClassNotFoundException | ClassCastException e) { // silent failed return;