cxf-dosgi: class not found
===

I have a (quite big) project built with osgi. 
Previously I had a big bundle (called CXFBundles) which contained all CXF packages (it had been generated by us from the CXF binary distribution).

Now I have to migrate from the big CXFBundles to smaller one, so that we can have more "tuning"...

I downloaded the cxf-dosgi multi bundle and imported all the bundles in my eclipse workspace.
I fixed all the errors (on the import-packages of MANIFEST.MF of my various bundles) and now at least it compiles everything.

The problem is that I get a lot of ClassNotFoundException when my bundles start!

The problem is on different classes, but I think that they are similar (so.. solved one, solved all!)

I copy the stack trace for one:

> [09Jul 17:41:59,409] (flush@178) ERROR root - Exception in thread "Timer-3" 
> [09Jul 17:41:59,409] (flush@178) ERROR root - java.lang.NoClassDefFoundError: org/apache/cxf/transport/ConduitInitiator
> 
> [09Jul 17:41:59,410] (flush@178) ERROR root - 	at java.lang.ClassLoader.defineClass1(Native Method)
> 
> [09Jul 17:41:59,411] (flush@178) ERROR root - 	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
> 
> [09Jul 17:41:59,411] (flush@178) ERROR root - 	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
> 
> [09Jul 17:41:59,412] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
> 
> [09Jul 17:41:59,412] (flush@178) ERROR root - 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClassHoldingLock(ClasspathManager.java:626)
> 
> [09Jul 17:41:59,413] (flush@178) ERROR root - 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:608)
> 
> [09Jul 17:41:59,413] (flush@178) ERROR root - 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:562)
> 
> [09Jul 17:41:59,414] (flush@178) ERROR root - 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:486)
> 
> [09Jul 17:41:59,414] (flush@178) ERROR root - 	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:459)
> 
> [09Jul 17:41:59,415] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
> 
> [09Jul 17:41:59,415] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
> 
> [09Jul 17:41:59,416] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
> 
> [09Jul 17:41:59,416] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
> 
> [09Jul 17:41:59,417] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
> 
> [09Jul 17:41:59,417] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> 
> [09Jul 17:41:59,418] (flush@178) ERROR root - 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 
> [09Jul 17:41:59,418] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
> 
> [09Jul 17:41:59,419] (flush@178) ERROR root - 	at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:229)
> 
> [09Jul 17:41:59,420] (flush@178) ERROR root - 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1207)
> 
> [09Jul 17:41:59,421] (flush@178) ERROR root - 	at org.apache.cxf.bus.osgi.CXFExtensionBundleListener$OSGiExtension.getClassObject(CXFExtensionBundleListener.java:125)
> 
> [09Jul 17:41:59,422] (flush@178) ERROR root - 	at org.apache.cxf.bus.extension.ExtensionManagerImpl.getBeansOfType(ExtensionManagerImpl.java:288)
> 
> [09Jul 17:41:59,422] (flush@178) ERROR root - 	at org.apache.cxf.bus.CXFBusImpl.getExtension(CXFBusImpl.java:99)
> 
> [09Jul 17:41:59,423] (flush@178) ERROR root - 	at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:111)
> 
> [09Jul 17:41:59,423] (flush@178) ERROR root - 	at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:139)
> 
> [09Jul 17:41:59,426] (flush@178) ERROR root - 	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:40)
> 
> [09Jul 17:41:59,426] (flush@178) ERROR root - 	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:36)
> 
> [09Jul 17:41:59,427] (flush@178) ERROR root - 	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:32)
> 
> [09Jul 17:41:59,427] (flush@178) ERROR root - 	at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:99)
> 
> [09Jul 17:41:59,428] (flush@178) ERROR root - 	at org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:88)
> 
> [09Jul 17:41:59,428] (flush@178) ERROR root - 	at com.abodata.plat1.wsutils.WSUtils.<clinit>(WSUtils.java:85)
> 
> [09Jul 17:41:59,429] (flush@178) ERROR root - 	at com.abodata.plat1.kpi.impl.KPIServiceImpl.publishEndPoint(KPIServiceImpl.java:245)
> 
> [09Jul 17:41:59,429] (flush@178) ERROR root - 	at com.abodata.plat1.kpi.impl.KPIServiceImpl.initialiseRestService(KPIServiceImpl.java:229)
> 
> [09Jul 17:41:59,430] (flush@178) ERROR root - 	at com.abodata.plat1.kpi.impl.KPIServiceImpl.access$4(KPIServiceImpl.java:224)
> 
> [09Jul 17:41:59,430] (flush@178) ERROR root - 	at com.abodata.plat1.kpi.impl.KPIServiceImpl$1.run(KPIServiceImpl.java:214)
> 
> [09Jul 17:41:59,431] (flush@178) ERROR root - 	at java.util.TimerThread.mainLoop(Timer.java:512)
> 
> [09Jul 17:41:59,431] (flush@178) ERROR root - 	at java.util.TimerThread.run(Timer.java:462)
> 
> [09Jul 17:41:59,432] (flush@178) ERROR root - Caused by: java.lang.ClassNotFoundException: org.apache.cxf.transport.ConduitInitiator
> 
> [09Jul 17:41:59,432] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
> 
> [09Jul 17:41:59,433] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
> 
> [09Jul 17:41:59,433] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
> 
> [09Jul 17:41:59,434] (flush@178) ERROR root - 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
> 
> [09Jul 17:41:59,434] (flush@178) ERROR root - 	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> 
> [09Jul 17:41:59,435] (flush@178) ERROR root - 	... 36 more

The bundle which includes the com.abodata.plat1.wsutils.WSUtils class imports the org.apache.cxf.transport package..

I don't know what to do..

Thank you!