Testsuite: org.slf4j.test_osgi.BundleTest Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.165 sec ------------- Standard Output --------------- DEBUG: WIRE: 3.0 -> javax.naming -> 0 DEBUG: WIRE: 3.0 -> javax.xml.parsers -> 0 DEBUG: WIRE: 3.0 -> org.xml.sax -> 0 DEBUG: WIRE: 3.0 -> org.xml.sax.helpers -> 0 DEBUG: WIRE: 1.0 -> org.osgi.framework -> 0 DEBUG: WIRE: 1.0 -> org.slf4j -> 4.0 DEBUG: WIRE: 1.0 -> ch.qos.logback.core -> 3.0 DEBUG: WIRE: 1.0 -> ch.qos.logback.core.joran.spi -> 3.0 DEBUG: WIRE: 1.0 -> ch.qos.logback.core.util -> 3.0 DEBUG: WIRE: 1.0 -> ch.qos.logback.classic -> 2.0 DEBUG: WIRE: 1.0 -> ch.qos.logback.classic.joran -> 2.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.boolex -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.db -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.encoder -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.filter -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.helpers -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.html -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.joran -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.joran.action -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.joran.event -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.joran.spi -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.net -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.pattern -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.rolling -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.rolling.helper -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.sift -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.spi -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.status -> 3.0 DEBUG: WIRE: 2.0 -> ch.qos.logback.core.util -> 3.0 DEBUG: WIRE: 2.0 -> javax.naming -> 0 DEBUG: WIRE: 2.0 -> org.slf4j -> 4.0 DEBUG: WIRE: 2.0 -> org.slf4j.helpers -> 4.0 DEBUG: WIRE: 2.0 -> org.slf4j.spi -> 4.0 DEBUG: WIRE: 2.0 -> org.xml.sax -> 0 DEBUG: WIRE: 4.0 -> org.slf4j.impl -> 2.0 ERROR: Error starting file:/C:/home/ceki/logback/logback-classic/bundle/iBundle.jar (org.osgi.framework.BundleException: Activator start error in bundle iBundle [1].) felix started ===========C:\home\ceki\logback\logback-classic\. BE:, source ch.qos.logback.core [3], bundle=ch.qos.logback.core [3], type=32 BE:, source iBundle [1], bundle=iBundle [1], type=32 BE:, source ch.qos.logback.classic [2], bundle=ch.qos.logback.classic [2], type=32 BE:, source slf4j.api [4], bundle=slf4j.api [4], type=32 BE:, source iBundle [1], bundle=iBundle [1], type=4 BE:, source ch.qos.logback.classic [2], bundle=ch.qos.logback.classic [2], type=2 BE:, source ch.qos.logback.core [3], bundle=ch.qos.logback.core [3], type=2 BE:, source slf4j.api [4], bundle=slf4j.api [4], type=2 BE:, source org.apache.felix.framework [0], bundle=org.apache.felix.framework [0], type=2 ===[ch.qos.logback.core [3]] ===[iBundle [1]] Framework ERROR:, source iBundle [1], bundle=iBundle [1], ex=org.osgi.framework.BundleException: Activator start error in bundle iBundle [1]. ------------- ---------------- --------------- ------------- Standard Error ----------------- java.lang.NoClassDefFoundError: ch/qos/logback/classic/util/ContextSelectorStaticBinder at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:59) at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:49) at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275) at integrator.Activator.start(Activator.java:45) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: *** Class 'ch.qos.logback.classic.util.ContextSelectorStaticBinder' was not found because bundle 2 does not import 'ch.qos.logback.classic.util' even though bundle 2 does export it. Additionally, the class is also available from the system class loader. There are two fixes: 1) Add an import for 'ch.qos.logback.classic.util' to bundle 2; imports are necessary for each class directly touched by bundle code or indirectly touched, such as super classes if their methods are used. 2) Add package 'ch.qos.logback.classic.util' to the 'org.osgi.framework.bootdelegation' property; a library or VM bug can cause classes to be loaded by the wrong class loader. The first approach is preferable for preserving modularity. *** at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1670) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 13 more Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.util.ContextSelectorStaticBinder at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:744) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1656) ... 15 more org.osgi.framework.BundleException: Activator start error in bundle iBundle [1]. at org.apache.felix.framework.Felix.activateBundle(Felix.java:1751) at org.apache.felix.framework.Felix.startBundle(Felix.java:1622) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1077) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.NoClassDefFoundError: ch/qos/logback/classic/util/ContextSelectorStaticBinder at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:59) at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:49) at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:230) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:112) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:275) at integrator.Activator.start(Activator.java:45) at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:640) at org.apache.felix.framework.Felix.activateBundle(Felix.java:1700) ... 4 more Caused by: java.lang.ClassNotFoundException: *** Class 'ch.qos.logback.classic.util.ContextSelectorStaticBinder' was not found because bundle 2 does not import 'ch.qos.logback.classic.util' even though bundle 2 does export it. Additionally, the class is also available from the system class loader. There are two fixes: 1) Add an import for 'ch.qos.logback.classic.util' to bundle 2; imports are necessary for each class directly touched by bundle code or indirectly touched, such as super classes if their methods are used. 2) Add package 'ch.qos.logback.classic.util' to the 'org.osgi.framework.bootdelegation' property; a library or VM bug can cause classes to be loaded by the wrong class loader. The first approach is preferable for preserving modularity. *** at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1670) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 13 more Caused by: java.lang.ClassNotFoundException: ch.qos.logback.classic.util.ContextSelectorStaticBinder at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:744) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1656) ... 15 more ------------- ---------------- --------------- Testcase: testSmoke took 0.163 sec FAILED expected:<0> but was:<1> junit.framework.AssertionFailedError: expected:<0> but was:<1> at org.slf4j.test_osgi.BundleTest.testSmoke(BundleTest.java:33)