You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ppkarwasz (via GitHub)" <gi...@apache.org> on 2024/11/28 15:43:23 UTC

[I] Module `org.apache.logging.log4j.core` does not declare `uses RecyclerFactoryProvider` (logging-log4j2)

ppkarwasz opened a new issue, #3250:
URL: https://github.com/apache/logging-log4j2/issues/3250

   Log4j Core version `3.0.0-beta3` does not have all the necessary JPMS service declaration, which causes the following exception to be thrown:
   
   ```
   java.util.ServiceConfigurationError: org.apache.logging.log4j.kit.recycler.RecyclerFactoryProvider: module org.apache.logging.log4j.core does not declare `uses`
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Module `org.apache.logging.log4j.core` does not declare `uses RecyclerFactoryProvider` [logging-log4j2]

Posted by "ramanathan1504 (via GitHub) via notifications" <no...@logging.apache.org>.
ramanathan1504 commented on issue #3250:
URL: https://github.com/apache/logging-log4j2/issues/3250#issuecomment-6703244905

   Fixed on `main` by #3254 (d9811cce35). Closing as completed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Module `org.apache.logging.log4j.core` does not declare `uses RecyclerFactoryProvider` (logging-log4j2)

Posted by "ppkarwasz (via GitHub)" <gi...@apache.org>.
ppkarwasz commented on issue #3250:
URL: https://github.com/apache/logging-log4j2/issues/3250#issuecomment-2506513991

   To workaround the issue, users can implement their own `ConfigurableInstanceFactoryPostProcessor` that registers a `RecyclerFactory` bean:
   
   ```java
   public class Log4jCorePostProcessor implements ConfigurableInstanceFactoryPostProcessor {
       @Override
       public void postProcessFactory(ConfigurableInstanceFactory factory) {
           factory.registerBinding(Key.forClass(RecyclerFactory.class), () -> RecyclerFactoryProvider.getInstance()
                   .createForEnvironment(null));
       }
   }
   ```
   
   and register the post-processor with `ServiceLoader`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Module `org.apache.logging.log4j.core` does not declare `uses RecyclerFactoryProvider` [logging-log4j2]

Posted by "ramanathan1504 (via GitHub) via notifications" <no...@logging.apache.org>.
ramanathan1504 closed issue #3250: Module `org.apache.logging.log4j.core` does not declare `uses RecyclerFactoryProvider`
URL: https://github.com/apache/logging-log4j2/issues/3250


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org