Skip to content

spring-jcl does not include exported packages of java commons logging [SPR-15957] #20509

Closed
@spring-projects-issues

Description

@spring-projects-issues

Nicola Ferraro opened SPR-15957 and commented

We are trying to support spring-boot 2 in Apache Camel and we have found some issues with commons-logging (ticket here: https://issues.apache.org/jira/browse/CAMEL-11756).

Some classes of the "impl" package of commons-logging are used by third party libraries. For example commons-configuration (v1 and v2) use the NoOpLog from that package in: https://github.com/apache/commons-configuration/blob/3c212681e410097cf38ee376540da585a8938923/src/main/java/org/apache/commons/configuration/AbstractConfiguration.java#L366

There are some camel modules that use commons-configuration, so we need to add commons-logging or jcl-over-slf4j to overcome this issue, but that would create duplicate classes, because the base package (org.apache.commons.configuration) is already provided by spring-jcl.

As jcl-over-slf4j did (https://github.com/qos-ch/slf4j/tree/master/jcl-over-slf4j/src/main/java/org/apache/commons/logging/impl), it would be useful to add some common classes from the "org.apache.commons.configuration.impl" package also in spring-jcl, in order to make the migration smoother for 1.x users.


Affects: 5.0 RC4

Reference URL: https://issues.apache.org/jira/browse/CAMEL-11756

Issue Links:

Referenced from: commits 1f3967c

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions