spring-cloud / spring-cloud/spring-cloud-consul
Standard Commons Logging discovery in action with spring-jcl
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 822
- Forks
- 539
- Avg merge
- 9h 31m
- Merged PRs (30d)
- 7
Description
Describe the bug
Please provide details of the problem, including the version of Spring Cloud that you
are using.
A warning indicates that commons-logging is present in the classpath.
By design, spring-jcl should bridge the logs to Log4J.
On version 3.3.5 of spring-boot, 2023.0.3 of spring cloud, maven, java 21.
commons-logging:commons-logging:1.2 is imported by org.apache.httpcomponents:httpclient:4.5.14.
Sample
If possible, please provide a test case or sample application that reproduces
the problem. This makes it much easier for us to diagnose the problem and to verify that
we have fixed it.
Using spring initializr, with spring boot 3.3.5, 2023.0.3 of spring cloud, maven, java 21.
Add consul discovery.
Run the project.
The second line of the logs is :
Standard Commons Logging discovery in action with spring-jcl: please remove commons-logging.jar from classpath in order to avoid potential conflicts
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the warning in a Spring Initializr project with Spring Boot 3.3.5, Spring Cloud 2023.0.3, Consul discovery, Maven, and Java 21. Inspect the dependency path from org.apache.httpcomponents:httpclient:4.5.14 to commons-logging:commons-logging:1.2, then determine whether the warning is expected; done means the reported behavior is corrected or clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100