diff --git a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InstanceHandler.java b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InstanceHandler.java index b80d1871aef36..e988e33a93742 100644 --- a/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InstanceHandler.java +++ b/independent-projects/resteasy-reactive/server/runtime/src/main/java/org/jboss/resteasy/reactive/server/handlers/InstanceHandler.java @@ -22,6 +22,7 @@ public void handle(ResteasyReactiveRequestContext requestContext) throws Excepti if (instance == null) { synchronized (this) { if (instance == null) { + requestContext.requireCDIRequestScope(); instance = factory.createInstance().getInstance(); } } diff --git a/integration-tests/oidc/pom.xml b/integration-tests/oidc/pom.xml index d7e730ca29e5a..37a87f7a9bbcd 100644 --- a/integration-tests/oidc/pom.xml +++ b/integration-tests/oidc/pom.xml @@ -20,7 +20,7 @@ io.quarkus - quarkus-resteasy-jackson + quarkus-resteasy-reactive-jackson @@ -73,7 +73,7 @@ io.quarkus - quarkus-resteasy-jackson-deployment + quarkus-resteasy-reactive-jackson-deployment ${project.version} pom test