You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2016/11/02 11:42:58 UTC
[jira] [Comment Edited] (LOG4J2-1637) OSGi support is broken in
Log4j2 2.7
[ https://issues.apache.org/jira/browse/LOG4J2-1637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15628687#comment-15628687 ]
Remko Popma edited comment on LOG4J2-1637 at 11/2/16 11:42 AM:
---------------------------------------------------------------
-Not sure how relevant this is, but it looks like our POM uses the [Apache Felix Maven OSGi Plugin|http://felix.apache.org/documentation/subprojects/apache-felix-maven-osgi-plugin.html]. Apparently this is deprecated and has been replaced by the [Apache Felix Maven Bundle Plugin (BND)|http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html] plugin.-
I was wrong: we are using the correct plugin.
was (Author: remkop@yahoo.com):
Not sure how relevant this is, but it looks like our POM uses the [Apache Felix Maven OSGi Plugin|http://felix.apache.org/documentation/subprojects/apache-felix-maven-osgi-plugin.html]. Apparently this is deprecated and has been replaced by the [Apache Felix Maven Bundle Plugin (BND)|http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html] plugin.
> OSGi support is broken in Log4j2 2.7
> ------------------------------------
>
> Key: LOG4J2-1637
> URL: https://issues.apache.org/jira/browse/LOG4J2-1637
> Project: Log4j 2
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.7
> Environment: Apache Felix, Java 8
> Reporter: Ludovic HOCHET
> Attachments: patch-log4j2-1637.diff
>
>
> Log4j2 2.7 fails to initialise in an OSGi environement complaining that java.lang.NoClassDefFoundError: org/apache/logging/log4j/Logger.
> Running the OSGi tests on Log4j API also fails:
> org.apache.logging.log4j.osgi.felix.FelixLoadApiBundleTest
> testMissingImportOfCoreOsgiPackage(org.apache.logging.log4j.osgi.felix.FelixLoadApiBundleTest) Time elapsed: 1.031 sec <<< ERROR!
> org.osgi.framework.BundleException: Activator start error in bundle org.apache.logging.log4j.core [2].
> Caused by: java.lang.NoClassDefFoundError: org/apache/logging/log4j/Logger
> Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Logger not found by org.apache.logging.log4j.core [2]
> [... likewise for the other tests and equinox]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org