[
https://issues.apache.org/jira/browse/JCR-4796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553072#comment-17553072
]
Konrad Windszus commented on JCR-4796:
--------------------------------------
There are multiple misunderstandings here:
* Maven dependencies for regular JR modules are just relevant at compile time
(not at runtime)
* SLF4J-API is not an SLF4J binding (https://www.slf4j.org/manual.html#swapping)
* The JR webapp (WAR) comes with Logback as binding
(https://github.com/apache/jackrabbit/blob/5196aab46fc4706198cdcd7c80cc3f5829e6e580/jackrabbit-webapp/pom.xml#L77),
try to remove that binding in case it conflicts with the servlet container
classloader in any way (you haven't shared details about with which container
you try to run which version of the JR webapp)
In general the issue tracker is no place to raise questions, please use the
mailing list for that. Also notice that Open-Source is driven by volunteers,
complaining too much usually does not help, while constructive criticism
(concrete bug reports, PRs with bug fixes) are highly appreciated.
> Remove slf4j from Jackrabbit libraries
> --------------------------------------
>
> Key: JCR-4796
> URL: https://issues.apache.org/jira/browse/JCR-4796
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Reporter: Graham Leggett
> Priority: Major
>
> Life is too short to deal with exceptions like this one:
> java.lang.LinkageError: loader constraint violation: when resolving method
> 'org.slf4j.ILoggerFactory
> org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()' the class loader
> org.apache.catalina.loader.ParallelWebappClassLoader @4bd217c of the current
> class, org/slf4j/LoggerFactory, and the class loader java.net.URLClassLoader
> @7907ec20 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
> org.apache.catalina.loader.ParallelWebappClassLoader @4bd217c, parent loader
> java.net.URLClassLoader @7907ec20; org.slf4j.impl.StaticLoggerBinder is in
> unnamed module of loader java.net.URLClassLoader @7907ec20, parent loader
> 'app')
> Remove slf4j and replace with the java default behaviour.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)