You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (JIRA)" <ji...@apache.org> on 2018/02/19 05:08:00 UTC

[jira] [Updated] (LOG4J2-2249) The module-info of org.apache.logging.log4j miss some directive 'uses'

     [ https://issues.apache.org/jira/browse/LOG4J2-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4J2-2249:
--------------------------------
    Priority: Blocker  (was: Major)

> The module-info of org.apache.logging.log4j miss some directive 'uses'
> ----------------------------------------------------------------------
>
>                 Key: LOG4J2-2249
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2249
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.10.0
>            Reporter: remi forax
>            Priority: Blocker
>
> Hi !
> using Log4J with no configuration file doesn't work in a full module environment,
> i get the following stacktrace because the module-info.java does not contain the directive  `uses org.apache.logging.log4j.util.PropertySource`.
> This is a showstopper for us :(
> java.util.ServiceConfigurationError: org.apache.logging.log4j.util.PropertySource: module org.apache.logging.log4j does not declare `uses`
>     at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:588)
>     at java.base/java.util.ServiceLoader.checkCaller(ServiceLoader.java:574)
>     at java.base/java.util.ServiceLoader.<init>(ServiceLoader.java:503)
>     at java.base/java.util.ServiceLoader.load(ServiceLoader.java:1684)
>     at org.apache.logging.log4j/org.apache.logging.log4j.util.PropertiesUtil$Environment.<init>(PropertiesUtil.java:319)
>     at org.apache.logging.log4j/org.apache.logging.log4j.util.PropertiesUtil$Environment.<init>(PropertiesUtil.java:310)
>     at org.apache.logging.log4j/org.apache.logging.log4j.util.PropertiesUtil.<init>(PropertiesUtil.java:69)
>     at org.apache.logging.log4j/org.apache.logging.log4j.util.PropertiesUtil.<clinit>(PropertiesUtil.java:49)
>     at com.github.forax.beautifullogger/com.github.forax.beautifullogger.Log4JTests.<clinit>(Log4JTests.java:15)
> regards,
> Rémi
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)