Skip to content
Advertisement

Quarkus Reactive – Multiple matching properties for name “security.jaxrs.deny-unannotated-endpoints” Error

Using Quarkus I get the following error at execution time:

Caused by: java.lang.IllegalArgumentException: Multiple matching properties for name “security.jaxrs.deny-unannotated-endpoints” property was matched by both public boolean io.quarkus.resteasy.reactive.common.runtime.JaxRsSecurityConfig.denyJaxRs and public boolean io.quarkus.resteasy.runtime.JaxRsSecurityConfig.denyJaxRs. This is likely because you have an incompatible combination of extensions that both define the same properties (e.g. including both reactive and blocking database extensions)

My pom properties are:

JavaScript

And dependencies:

JavaScript

I’m just trying to stream using Multi from mutiny and Server Sent Elements:

JavaScript

Advertisement

Answer

You have both classic RESTEasy (quarkus-resteasy-jsonb, quarkus-resteasy-mutiny) and RESTEasy Reactive (quarkus-resteasy-reactive). You need to pick one and stick to it.

For example, if you want RESTEasy Reactive, you’d remove quarkus-resteasy-mutiny (no need for extra dependency with RESTEasy Reactive), and replace quarkus-resteasy-jsonb with quarkus-resteasy-reactive-jsonb.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement