aerogear / keycloak-metrics-spi

Adds a Metrics Endpoint to Keycloak
Apache License 2.0
523 stars 151 forks source link

Not compatible with Keycloak 22 #168

Closed AndreVirtimo closed 11 months ago

AndreVirtimo commented 11 months ago

Description

After the update to Keycloak 22.0.0 we can't use the metrics anymore.

I think the transition from Java EE to Jakarta EE is the cause (https://www.keycloak.org/2023/07/keycloak-2200-released.html).

Expected Behavior

Working like before with Keycloak 21.

Actual Behavior

When metrics API is called we get this error:

ERROR [io.quarkus.vertx.http.runtime.QuarkusErrorHandler] (executor-thread-17) HTTP Request to /auth/realms/master/metrics failed, error id: aa4af149-219c-4f56-9f95-b7a1d43e35e8-37: java.lang.NoClassDefFoundError: javax/ws/rs/WebApplicationException"

Environment

Official Keycloak Docker container + keycloak-metrics-spi and a custom theme.

Steps to reproduce

Start Keycloak 22 with keycloak-metrics-spi .

logopk commented 11 months ago

That's a me too

diversit commented 11 months ago

We're having the same issue. Working on a fix...

diversit commented 11 months ago

Provided a fix in #169

pb82 commented 11 months ago

fixed in release 4.0.0: https://github.com/aerogear/keycloak-metrics-spi/releases/tag/4.0.0