-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
Log a warning when commons-logging
is in the classpath
#30575
Comments
After picking up Spring Framework 6.0.10, in one of the projects I'm working on we're seeing this warning logged even after excluding |
To some degree this is the intention behind that log statement, becoming aware of such an implicit BTW in such a scenario, you could also try to remove |
I can try with removing
The wording itself is fine, but if someone decides (or has to) live with this, the fact that warning is written directly to stdout is a bit inconvenient, especially if your infra expects log entries of a certain structure (for example, JSON). Additionally, after picking up the upgrade I originally had this logged multiple times - due to having It's a bit unfortunate that this requires so much fiddling (if the solution really is to exclude |
As mentioned in the reference documentation,
spring-jcl
provides its own Commons Logging bridge, with classes likeorg.apache.commons.logging.LogFactory
.When
commons-logging:commons-logging
dependency is in the classpath (either included directly or transitively via dependency likecom.opencsv:opencsv
for example), it leads to dulicated classpath entries on the JVM and broken native compilation due to a build-time initialization error (see oracle/graal#6711 related issue).This issue intends to introduce a warning when both
spring-jcl
andcommons-logging
are found in the classpath, to hint about excluding suchcommons-logging
dependency.The text was updated successfully, but these errors were encountered: