qos-ch / slf4j

Simple Logging Facade for Java
http://www.slf4j.org
MIT License
2.3k stars 976 forks source link

[BUG] - JCL-Over-SLF4J Module Definition does not specify the service loader for JPMS applications #414

Open GedMarc opened 3 months ago

GedMarc commented 3 months ago

Hey Guys,

The module definition for the jcl-over-slf4j unfortunately does not specify the service loader for org.apache.commons.logging.LogFactory

When executing applications in a built JRE (Using JLink or JPackage), the services are loaded from their module definitions, and the functionality is not loaded.

Could you please possible update the module definition -

module org.apache.commons.logging {
    requires org.slf4j;

    exports org.apache.commons.logging;

    provides org.apache.commons.logging.LogFactory with org.apache.commons.logging.impl.SLF4JLogFactory;
}

Much appreciated

ceki commented 3 months ago

Link with issue https://jira.qos.ch/browse/SLF4J-602