[ https://issues.apache.org/jira/browse/JAMES-3862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17638244#comment-17638244 ]
Benoit Tellier commented on JAMES-3862: --------------------------------------- Hello, Do you think you can open a pull request on this topic? > Log4J/SLF4J Binding is broken in james-server-spring-app > -------------------------------------------------------- > > Key: JAMES-3862 > URL: https://issues.apache.org/jira/browse/JAMES-3862 > Project: James Server > Issue Type: Bug > Affects Versions: 3.8.0 > Reporter: Bernd Bartke > Priority: Major > Fix For: 3.7.3 > > > Log4J/SLF4J Binding is broken in james-server-spring-app, starting with 3.7.2. > Server startup of 3.7.2: > {noformat} > C:\bin\james-server-spring-app-3.7.2\bin>run.bat > SLF4J: No SLF4J providers were found. > SLF4J: Defaulting to no-operation (NOP) logger implementation > SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details. > SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x > or earlier. > SLF4J: Ignoring binding found at > [jar:file:/C:/bin/james-server-spring-app-3.7.2/lib/log4j-slf4j-impl-2.17.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] > SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an > explanation. > 15 James WARN [main] openjpa.Runtime - An error occurred while > registering a ClassTransformer with PersistenceUnitInfo: name 'James', root > URL [file:/C:/bin/james-server-spring-app-3.7.2/conf]. The error has been > consumed. To see it, set your openjpa.Runtime log level to TRACE. Load-time > class transformation will not be available. > 9281 James INFO [main] openjpa.Runtime - Starting OpenJPA 3.2.0 > {noformat} > Issue was introduced with commit 3460270c3a928da6ee650194a9d4f1a08e53947e by > TRAN at 2022-09-20: > slf4j.version has been changed from 1.7.36 to 2.0.1 > (!) SLF4J 2 requires updated SLF4J to Log4j Adapters: > SLF4J 2 ServiceLoader mechanism to find its logging backend > https://www.slf4j.org/faq.html#changesInVersion200 > https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/ > {quote} > Due to a break in compatibility in the SLF4J binding, as of release 2.19.0 > two SLF4J to Log4j Adapters are provided. > ... > 2. {{log4j-slf4j2-impl}} should be used with SLF4J 2.0.x releases or newer. > {quote} > To fix the issue, the 3 pom.xml referencing artifactId {{log4j-slf4j-impl}} > should reference artifactId {{log4j-slf4j2-impl}} instead (- > {{log4j2.version}} is already set to {{2.19.0}}, ): > {noformat} > $ grep -r --include="pom.xml" "log4j-slf4j-impl" * > pom.xml: <artifactId>log4j-slf4j-impl</artifactId> > server/apps/spring-app/pom.xml: > <artifactId>log4j-slf4j-impl</artifactId> > server/container/spring/pom.xml: > <artifactId>log4j-slf4j-impl</artifactId> > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org