[
https://issues.apache.org/jira/browse/KARAF-6344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888006#comment-16888006
]
Grzegorz Grzybek commented on KARAF-6344:
-----------------------------------------
Hello. I updated https://ops4j1.jira.com/browse/PAXLOGGING-260 and provided
actual Karaf integration tests for Pax Logging.
*
[JacksonWithoutLog4J2ExtraIntegrationTest.java|https://github.com/ops4j/org.ops4j.pax.logging/blob/paxlogging-1.11.x/pax-logging-it-karaf/karaf-it/src/test/java/org/ops4j/pax/logging/it/karaf/JacksonWithoutLog4J2ExtraIntegrationTest.java]
shows that Jackson can't be found by pax-logging-log4j2
*
[JacksonWithLog4J2ExtraIntegrationTest.java|https://github.com/ops4j/org.ops4j.pax.logging/blob/paxlogging-1.11.x/pax-logging-it-karaf/karaf-it/src/test/java/org/ops4j/pax/logging/it/karaf/JacksonWithLog4J2ExtraIntegrationTest.java]
shows that Jackson is imported (similar case to com.lmax.disruptor) if Jackson
bundles are in {{etc/startup.properties}} with lower start level than
pax-logging-log4j2
*
[JacksonWithLog4J2ExtraAndRefreshIntegrationTest.java|https://github.com/ops4j/org.ops4j.pax.logging/blob/paxlogging-1.11.x/pax-logging-it-karaf/karaf-it/src/test/java/org/ops4j/pax/logging/it/karaf/JacksonWithLog4J2ExtraAndRefreshIntegrationTest.java]
shows that if Jackson bundles are installed later *and* {{pax-logging-log4j2}}
is refreshed, {{pax-logging-log4j2-extra}} fragment approach works too.
Can you share your {{etc/startup.properties}} and logs? maybe a reproducer
(custom Karaf distro on Github)?
> AsyncLogger fails due to bug in pax-logging
> -------------------------------------------
>
> Key: KARAF-6344
> URL: https://issues.apache.org/jira/browse/KARAF-6344
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.6
> Reporter: Rico Neubauer
> Assignee: Jean-Baptiste Onofré
> Priority: Major
> Labels: logging
> Fix For: 4.3.0, 4.2.7
>
>
> Just as reference:
> Karaf 4.2.6 updated to pax-logging 1.10.2, which introduced this regression:
> [https://ops4j1.jira.com/browse/PAXLOGGING-260]
> This leads to the logger breaking if e.g. Karaf gets configured for async
> logging _log4j2.rootLogger.type = asyncRoot_ in logging config. Exception
> below.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)