logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claudio Di Vita (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LOG4J2-1307) Cannot activate the OSGi bundle in Equinox
Date Thu, 03 Mar 2016 14:57:18 GMT
Claudio Di Vita created LOG4J2-1307:
---------------------------------------

             Summary: Cannot activate the OSGi bundle in Equinox
                 Key: LOG4J2-1307
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1307
             Project: Log4j 2
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.5, 2.4.1, 2.4, 2.3, 2.2
            Reporter: Claudio Di Vita


When I try to activate the log4j-core bundle within an Equinox based OSGI environment, the
activation fails with the following error:

org.osgi.framework.BundleException: Exception in org.apache.logging.log4j.core.osgi.Activator.start()
of bundle org.apache.logging.log4j.core.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.resumeBundles(PackageAdminImpl.java:312)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:556)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:251)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassCastException: org.eclipse.osgi.internal.loader.SystemBundleLoader$1
cannot be cast to java.lang.ClassLoader
	at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl$DescriptionWiring.getClassLoader(BundleDescriptionImpl.java:1229)
	at org.apache.logging.log4j.core.osgi.Activator.scanBundleForPlugins(Activator.java:68)
	at org.apache.logging.log4j.core.osgi.Activator.scanInstalledBundlesForPlugins(Activator.java:61)
	at org.apache.logging.log4j.core.osgi.Activator.start(Activator.java:52)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	... 8 more
Root exception:
java.lang.ClassCastException: org.eclipse.osgi.internal.loader.SystemBundleLoader$1 cannot
be cast to java.lang.ClassLoader
	at org.eclipse.osgi.internal.resolver.BundleDescriptionImpl$DescriptionWiring.getClassLoader(BundleDescriptionImpl.java:1229)
	at org.apache.logging.log4j.core.osgi.Activator.scanBundleForPlugins(Activator.java:68)
	at org.apache.logging.log4j.core.osgi.Activator.scanInstalledBundlesForPlugins(Activator.java:61)
	at org.apache.logging.log4j.core.osgi.Activator.start(Activator.java:52)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.resumeBundles(PackageAdminImpl.java:312)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:556)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:251)
	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl$1.run(PackageAdminImpl.java:174)
	at java.lang.Thread.run(Thread.java:745)



--
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


Mime
View raw message