diff --git a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java index c34febe9f04209..5f4b7ca72aafe0 100644 --- a/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java +++ b/extensions/resteasy-reactive/rest-client-reactive/deployment/src/main/java/io/quarkus/rest/client/reactive/deployment/RestClientReactiveProcessor.java @@ -293,18 +293,25 @@ void registerProvidersFromAnnotations(CombinedIndexBuildItem indexBuildItem, continue; } } + DotName providerDotName = providerClass.name(); + // don't register server specific types + if (providerDotName.equals(ResteasyReactiveDotNames.CONTAINER_REQUEST_FILTER) + || providerDotName.equals(ResteasyReactiveDotNames.CONTAINER_RESPONSE_FILTER) + || providerDotName.equals(ResteasyReactiveDotNames.EXCEPTION_MAPPER)) { + continue; + } if (providerClass.interfaceNames().contains(ResteasyReactiveDotNames.FEATURE)) { continue; // features should not be automatically registered for the client, see javadoc for Feature } - int priority = getAnnotatedPriority(index, providerClass.name().toString(), Priorities.USER); + int priority = getAnnotatedPriority(index, providerDotName.toString(), Priorities.USER); constructor.invokeVirtualMethod( MethodDescriptor.ofMethod(AnnotationRegisteredProviders.class, "addGlobalProvider", void.class, Class.class, int.class), - constructor.getThis(), constructor.loadClassFromTCCL(providerClass.name().toString()), + constructor.getThis(), constructor.loadClassFromTCCL(providerDotName.toString()), constructor.load(priority)); } }