You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Rico Neubauer (JIRA)" <ji...@apache.org> on 2019/07/22 13:28:00 UTC
[jira] [Comment Edited] (KARAF-6344) AsyncLogger fails due to bug
in pax-logging
[ https://issues.apache.org/jira/browse/KARAF-6344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16890159#comment-16890159 ]
Rico Neubauer edited comment on KARAF-6344 at 7/22/19 1:27 PM:
---------------------------------------------------------------
Hi [~gzres], thanks for looking into it.
My startup.properties is this (default, plus lmax):
{code:java}
# Bundles to be started on startup, with startlevel
mvn\:org.apache.karaf.features/org.apache.karaf.features.extension/4.2.6 = 1
mvn\:org.apache.felix/org.apache.felix.metatype/1.2.2 = 5
mvn\:org.apache.karaf.services/org.apache.karaf.services.eventadmin/4.2.6 = 5
mvn\:org.ops4j.pax.url/pax-url-aether/2.6.1 = 5
mvn\:com.lmax/disruptor/3.4.2 = 7
mvn\:org.fusesource.jansi/jansi/1.18 = 8
mvn\:org.ops4j.pax.logging/pax-logging-api/1.10.2 = 8
mvn\:org.ops4j.pax.logging/pax-logging-log4j2/1.10.2 = 8
mvn\:org.apache.felix/org.apache.felix.coordinator/1.0.2 = 9
mvn\:org.apache.felix/org.apache.felix.configadmin/1.9.14 = 10
mvn\:org.apache.felix/org.apache.felix.fileinstall/3.6.4 = 11
mvn\:org.apache.karaf.features/org.apache.karaf.features.core/4.2.6 = 15
mvn\:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0 = 30
{code}
And added lmax artifact of course.
in org.ops4j.pax.logging.cfg I just comment-in the async logging. No further changes to default distro.
{{Results in the java.lang.ClassNotFoundException: com.lmax.disruptor.EventFactory not found by org.ops4j.pax.logging.pax-logging-log4j mentioned before.}}
Uploaded the whole distro with adapted config here: [https://mft.seeburger.de:443/portal-seefx/~public/da51bce9-0c45-4956-ab12-8cace8edd513?download|https://mft.seeburger.de/portal-seefx/~public/da51bce9-0c45-4956-ab12-8cace8edd513?download]
was (Author: riconeubauer):
Hi [~gzres], thanks for looking into it.
My startup.properties is this (default, plus lmax):
{code:java}
# Bundles to be started on startup, with startlevel
mvn\:org.apache.karaf.features/org.apache.karaf.features.extension/4.2.6 = 1
mvn\:org.apache.felix/org.apache.felix.metatype/1.2.2 = 5
mvn\:org.apache.karaf.services/org.apache.karaf.services.eventadmin/4.2.6 = 5
mvn\:org.ops4j.pax.url/pax-url-aether/2.6.1 = 5
mvn\:com.lmax/disruptor/3.4.2 = 7
mvn\:org.fusesource.jansi/jansi/1.18 = 8
mvn\:org.ops4j.pax.logging/pax-logging-api/1.10.2 = 8
mvn\:org.ops4j.pax.logging/pax-logging-log4j2/1.10.2 = 8
mvn\:org.apache.felix/org.apache.felix.coordinator/1.0.2 = 9
mvn\:org.apache.felix/org.apache.felix.configadmin/1.9.14 = 10
mvn\:org.apache.felix/org.apache.felix.fileinstall/3.6.4 = 11
mvn\:org.apache.karaf.features/org.apache.karaf.features.core/4.2.6 = 15
mvn\:org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0 = 30
{code}
And added lmax artifats of course.
in org.ops4j.pax.logging.cfg I just comment-in the async logging. No further changes to default distro.
{{Results in the java.lang.ClassNotFoundException: com.lmax.disruptor.EventFactory not found by org.ops4j.pax.logging.pax-logging-log4j mentioned before.}}
Uploaded the whole distro with adapted config here: [https://mft.seeburger.de:443/portal-seefx/~public/da51bce9-0c45-4956-ab12-8cace8edd513?download|https://mft.seeburger.de/portal-seefx/~public/da51bce9-0c45-4956-ab12-8cace8edd513?download]
> 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)