Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slf4j version conflict #54

Open
kochen opened this issue Apr 5, 2024 · 2 comments
Open

Slf4j version conflict #54

kochen opened this issue Apr 5, 2024 · 2 comments

Comments

@kochen
Copy link

kochen commented Apr 5, 2024

Trying to a new SPI that uses slf4j but relies on the version built-in into Keycloak.

This seems to conflic with the version used in this listener:

5.721 Caused by: java.lang.LinkageError: loader constraint violation: when resolving method 'org.slf4j.ILoggerFactory org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()' the class loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @32232e55 of the current class, org/slf4j/LoggerFactory, and the class loader java.net.URLClassLoader @7905a0b8 for the method's defining class, org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type org/slf4j/ILoggerFactory used in the signature (org.slf4j.LoggerFactory is in unnamed module of loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @32232e55, parent loader io.quarkus.bootstrap.classloading.QuarkusClassLoader @5c153b9e; org.slf4j.impl.StaticLoggerBinder is in unnamed module of loader java.net.URLClassLoader @7905a0b8, parent loader 'app')

Opening one of the released jar packages and deleting the directory "/org/slf4j" from the jar does resolve the issue and allows keycloak to successfully start.

Is there a way to remove slf4j and/or at least use a newer (>2) version?

M.

@kochen
Copy link
Author

kochen commented Apr 24, 2024

SLF4J: The requested version 2.0.6 by your slf4j binding is not compatible with [1.6, 1.7]

@aznamier Is there something that can be done with this?

@kochen
Copy link
Author

kochen commented May 31, 2024

@aznamier could you assist here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant