Skip to content

Slf4j version conflict #54

Open
Open
@kochen

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions