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 bu...@apache.org on 2015/07/15 01:36:34 UTC

[Bug 58139] New: Log4J 2.3.0 - org.apache.logging.log4j.core.osgi.BundleContextSelector - ClassNotFoundException

https://bz.apache.org/bugzilla/show_bug.cgi?id=58139

            Bug ID: 58139
           Summary: Log4J 2.3.0 -
                    org.apache.logging.log4j.core.osgi.BundleContextSelect
                    or - ClassNotFoundException
           Product: Log4j
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
          Assignee: log4j-dev@logging.apache.org
          Reporter: jonathan.hanba@ge.com

I am trying to run a very basic OSGi bundle that uses Log4J version 2.3.0. When
I run the bundle, I get a java.lang.ClassNotFoundException. Here is the stack
trace reported by the error.

ERROR StatusLogger Unable to create context
org.apache.logging.log4j.core.osgi.BundleContextSelector
java.lang.ClassNotFoundException:
org.apache.logging.log4j.core.osgi.BundleContextSelector cannot be found by
org.apache.logging.log4j.api_2.3.0
    at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:432)
    at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:345)
    at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:337)
    at
org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:160)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.apache.logging.log4j.util.LoaderUtil.loadClass(LoaderUtil.java:117)
    at
org.apache.logging.log4j.util.LoaderUtil.newInstanceOf(LoaderUtil.java:136)
    at
org.apache.logging.log4j.util.LoaderUtil.newCheckedInstanceOf(LoaderUtil.java:163)
    at
org.apache.logging.log4j.core.util.Loader.newCheckedInstanceOf(Loader.java:311)
    at
org.apache.logging.log4j.core.impl.Log4jContextFactory.createContextSelector(Log4jContextFactory.java:96)
    at
org.apache.logging.log4j.core.impl.Log4jContextFactory.<init>(Log4jContextFactory.java:54)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at org.apache.logging.log4j.LogManager.<clinit>(LogManager.java:96)
    at com.ge.ip.systemtest2.osgi.example.Activator.<clinit>(Activator.java:16)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at
org.eclipse.osgi.internal.framework.BundleContextImpl.loadBundleActivator(BundleContextImpl.java:755)
    at
org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:706)
    at
org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:936)
    at
org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:319)
    at org.eclipse.osgi.container.Module.doStart(Module.java:571)
    at org.eclipse.osgi.container.Module.start(Module.java:439)
    at
org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:393)
    at aQute.launcher.Launcher.update(Launcher.java:436)
    at aQute.launcher.Launcher.activate(Launcher.java:349)
    at aQute.launcher.Launcher.run(Launcher.java:238)
    at aQute.launcher.Launcher.main(Launcher.java:87)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[Bug 58139] Log4J 2.3.0 - org.apache.logging.log4j.core.osgi.BundleContextSelector - ClassNotFoundException

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58139

Jonathan <jo...@ge.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major
                 OS|                            |Windows 7

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


[Bug 58139] Log4J 2.3.0 - org.apache.logging.log4j.core.osgi.BundleContextSelector - ClassNotFoundException

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58139

Gary Gregory <ga...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Gary Gregory <ga...@gmail.com> ---
Jonathan,


For Log4j 2, please use JIRA to create tickets: 

https://issues.apache.org/jira/browse/log4j2

Thank you!
Gary

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org