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

Multiple SLF4j JARs in build #238

Closed
mcpierce opened this issue Apr 12, 2020 · 4 comments
Closed

Multiple SLF4j JARs in build #238

mcpierce opened this issue Apr 12, 2020 · 4 comments
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file runtime Issues relating to the runtime requirements and behavior.
Milestone

Comments

@mcpierce
Copy link
Contributor

The following was reported on the developer mailing list:

SLF4J: Class path contains multiple SLF4J bindings.

SLF4J: Found binding in [jar:file:/D:/.scripts/comixed-app-pre-release.jar!/BOOT-INF/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: Found binding in [jar:file:/D:/.scripts/comixed-app-pre-release.jar!/BOOT-INF/lib/log4j-slf4j-impl-2.11.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]

SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
@mcpierce mcpierce added bug Something isn't working dependencies Pull requests that update a dependency file runtime Issues relating to the runtime requirements and behavior. labels Apr 12, 2020
@mcpierce mcpierce added this to the 0.6 milestone Apr 12, 2020
@mcpierce mcpierce assigned mcpierce and unassigned mcpierce Apr 18, 2020
@mcpierce mcpierce modified the milestones: 0.6, 0.7 May 4, 2020
@BRUCELLA2
Copy link
Contributor

I've been looking at this issue. If we remove the dependency to spring-boot-starter-log4j2 in the comixed main pom, there is no longer a multiple SLF4J bindings

@mcpierce
Copy link
Contributor Author

@BRUCELLA2 Will that remove the ability to use the @log4j2 annotations in the Java code?

@BRUCELLA2
Copy link
Contributor

I don't see any problem. The annotation seems to work.
To be sure, we can rather add exclusion of spring-boot-starter-logging on spring-boot-starter-web and let spring-boot-starter-log4j2.

@mcpierce
Copy link
Contributor Author

@BRUCELLA2 I'm happy with either solution.

@mcpierce mcpierce self-assigned this May 24, 2020
@mcpierce mcpierce modified the milestones: 0.7, 0.6 May 24, 2020
mcpierce added a commit to mcpierce/comixed that referenced this issue May 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file runtime Issues relating to the runtime requirements and behavior.
Projects
None yet
Development

No branches or pull requests

2 participants