
Hi, I wrote an osgi bundle using logback for logging, I can run it with Eclipse 3.4.2, but I cann't run it outside the IDE. The other bundles are ok. Please reply if possible. ============================================================== D:\osgi_proj\equinox1>java -jar plugins/org.eclipse.osgi_3.4.3.R34x_v20081215-10 30.jar -console -clean osgi> start logging... Failed to instantiate [ch.qos.logback.classic.LoggerContext] Reported exception: java.lang.NoClassDefFoundError: org/xml/sax/InputSource at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConf igurator.java:76) at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConf igurator.java:40) at ch.qos.logback.classic.util.ContextInitializer.configureByResource(Co ntextInitializer.java:47) at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInit ializer.java:108) at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:56 ) at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:189) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:112) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:105) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:235) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:208) at cn.unicom.logging.Activator.start(Activator.java:20) at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(Bund leContextImpl.java:1009) at java.security.AccessController.doPrivileged(Native Method) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv ator(BundleContextImpl.java:1003) at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund leContextImpl.java:984) at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl eHost.java:346) at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra ctBundle.java:355) at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame work.java:1074) at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund les(StartLevelManager.java:616) at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St artLevelManager.java:508) at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart Level(StartLevelManager.java:299) at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(Sta rtLevelManager.java:247) at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBu ndle.java:201) at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.j ava:644) at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51) at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarte r.java:313) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va:175) at org.eclipse.core.runtime.adaptor.EclipseStarter.main(EclipseStarter.j ava:150)