From a48637c565dd28d7fec3c70037b2327ecf4524a8 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Fri, 2 Aug 2024 10:44:33 +0300 Subject: [PATCH] Improve error message when security annotations could not be discovered Relates to: #42187 --- .../reactive/server/runtime/security/EagerSecurityHandler.java | 2 +- .../runtime/security/EagerSecurityInterceptorHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/resteasy-reactive/rest/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/EagerSecurityHandler.java b/extensions/resteasy-reactive/rest/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/EagerSecurityHandler.java index 2b1a28d5ea50a..625c149fd8c5a 100644 --- a/extensions/resteasy-reactive/rest/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/EagerSecurityHandler.java +++ b/extensions/resteasy-reactive/rest/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/EagerSecurityHandler.java @@ -258,7 +258,7 @@ public List handlers(Phase phase, ResourceClass resourceClass throw new IllegalStateException( """ Security annotation placed on resource method '%s#%s' wasn't detected by Quarkus during the build time. - Please report issue in Quarkus project. + Please consult https://quarkus.io/guides/cdi-reference#bean_discovery on how to make the module containing the code discoverable by Quarkus. """ .formatted(desc.invokedMethodDesc().getClassName(), desc.invokedMethodDesc().getMethodName())); diff --git a/extensions/resteasy-reactive/rest/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/EagerSecurityInterceptorHandler.java b/extensions/resteasy-reactive/rest/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/EagerSecurityInterceptorHandler.java index 92f43df67f578..e1b9337c14685 100644 --- a/extensions/resteasy-reactive/rest/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/EagerSecurityInterceptorHandler.java +++ b/extensions/resteasy-reactive/rest/runtime/src/main/java/io/quarkus/resteasy/reactive/server/runtime/security/EagerSecurityInterceptorHandler.java @@ -56,7 +56,7 @@ public List handlers(Phase phase, ResourceClass resourceClass throw new IllegalStateException( """ Security annotation placed on resource method '%s#%s' wasn't detected by Quarkus during the build time. - Please report issue in Quarkus project. + Please consult https://quarkus.io/guides/cdi-reference#bean_discovery on how to make the module containing the code discoverable by Quarkus. """ .formatted(desc.invokedMethodDesc().getClassName(), desc.invokedMethodDesc().getMethodName()));