You are right. Thank you very much! After explicitly adding org.apache.cxf.service.model (and two other missing packages, that led to subsequent NoClassDefFoundErrors) to the <Import-Package> of the POM, it is working now.
By the way: When doing the upgrade, I also upgraded the maven-bundle-plugin (from version 2.3.7 to version 2.5.4). Switching back to the old version of the plugin did not help. Version 2.3.7 also fails to add the necessary Include-Packages to the manifest. Best Regards, -- Jan Schulze > -----Ursprüngliche Nachricht----- > Von: Aki Yoshida [mailto:elak...@gmail.com] > Gesendet: Dienstag, 14. Juli 2015 11:13 > An: users@servicemix.apache.org > Betreff: Re: Upgrading CXF to version 3.x - NoClassDefFoundError: > BindingOperationInfo > > i don't know why the plugin didn't add this > org.apache.cxf.service.model package to the Include-Package list in > the manifest. > In any case, this entry is missing in the manifest, so you can add it > in your pom's bundle plugin's Import-Package to have it explicitly > generated. > > > 2015-07-13 16:53 GMT+02:00 Schulze, Jan > <jan.schu...@verwaltung.uni-tuebingen.de>: > > Still no progress with the problem below ... > > > > If anyone would be able to have a look: There is a Maven project at > > https://github.com/drMojo/smx-dynamic-client that can be used to > reproduce the problem. > > > > Build and deploy in ServiceMix 5.3.0 > > => working > > > > Build with Maven profile for ServiceMix 6.0.0 (mvn -P smx-6.0.0) and > deploy in ServiceMix 6.0.0 > > => error on deployment: > > java.lang.NoClassDefFoundError: > org.apache.cxf.service.model.BindingOperationInfo > > > > > > I have no clues what I could try to solve the problem :-( > > > > > > Best Regards, > > Jan Schulze > > > > > > > >> -----Ursprüngliche Nachricht----- > >> Von: Schulze, Jan [mailto:jan.schu...@verwaltung.uni-tuebingen.de] > >> Gesendet: Donnerstag, 9. Juli 2015 16:58 > >> An: users@servicemix.apache.org > >> Betreff: Upgrading CXF to version 3.x - NoClassDefFoundError: > >> BindingOperationInfo > >> > >> Hi all, > >> > >> we are presented with a web service client problem when upgrading SMX > >> from version 5.3.0 to 5.4.0/6.0.0. > >> It might have s.th. to do with the changes in CXF between versions 2.7.x > and > >> 3.0.x. > >> > >> We are using ServiceMix with blueprint and a web service client > configured > >> with the <jaxws:client> element. > >> When deploying our bundle to Karaf, we get a > >> java.lang.NoClassDefFoundError: > >> org.apache.cxf.service.model.BindingOperationInfo not found by > testroute > >> Previously, this bundle has been working fine. > >> > >> The BindingOperationInfo class has been in the bundle "cxf-api" in CXF > 2.7.x, > >> but was moved to the bundle "cxf-core" in CXF 3.0.x. > >> I have consulted the CXF 3.0 Migration Guide, but did not find any clues. > >> > >> Any hints would be highly appreciated! > >> > >> > >> The full karaf.log: > >> > >> 2015-07-09 15:52:12,289 | INFO | raf-3.0.4/deploy | > onServiceFactoryBean | > >> 121 - org.apache.cxf.cxf-rt-wsdl - 3.0.4 | Creating Service > >> {http://www.webserviceX.NET/}StockQuoteSoapService from class > >> net.webservicex.StockQuoteSoap > >> 2015-07-09 15:52:12,316 | WARN | raf-3.0.4/deploy | BeanRecipe | > 15 - > >> org.apache.aries.blueprint.core - 1.4.3 | Object to be destroyed is not an > >> instance of UnwrapperedBeanHolder, type: null > >> 2015-07-09 15:52:12,317 | WARN | raf-3.0.4/deploy | BeanRecipe | > 15 - > >> org.apache.aries.blueprint.core - 1.4.3 | Object to be destroyed is not an > >> instance of UnwrapperedBeanHolder, type: null > >> 2015-07-09 15:52:12,320 | INFO | raf-3.0.4/deploy | lueprintCamelContext > | > >> 70 - org.apache.camel.camel-core - 2.15.2 | Apache Camel 2.15.2 > >> (CamelContext: Test) is shutting down > >> 2015-07-09 15:52:12,322 | INFO | raf-3.0.4/deploy | lueprintCamelContext > | > >> 70 - org.apache.camel.camel-core - 2.15.2 | Apache Camel 2.15.2 > >> (CamelContext: Test) uptime not started > >> 2015-07-09 15:52:12,322 | INFO | raf-3.0.4/deploy | lueprintCamelContext > | > >> 70 - org.apache.camel.camel-core - 2.15.2 | Apache Camel 2.15.2 > >> (CamelContext: Test) is shutdown in 0.002 seconds > >> 2015-07-09 15:52:12,323 | ERROR | raf-3.0.4/deploy | > ueprintContainerImpl | > >> 15 - org.apache.aries.blueprint.core - 1.4.3 | Unable to start blueprint > >> container for bundle testroute > >> org.osgi.service.blueprint.container.ComponentDefinitionException: Error > >> when instantiating bean stockQuoteClientProxy of class > >> net.webservicex.StockQuoteSoap > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.ja > >> va:300)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecip > >> e.java:806)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe > >> .java:787)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[1 > >> 5:org.apache.aries.blueprint.core:1.4.3] > >> at > java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45] > >> at > >> > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[ > >> 15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)[1 > >> 5:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106 > >> )[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.ja > >> va:933)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe. > >> java:907)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe. > >> java:888)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecip > >> e.java:820)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe > >> .java:787)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[1 > >> 5:org.apache.aries.blueprint.core:1.4.3] > >> at > java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_45] > >> at > >> > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[ > >> 15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BlueprintRepository.createInstances(Bl > >> ueprintRepository.java:245)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BlueprintRepository.createAll(Blueprint > >> Repository.java:183)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEage > >> > rComponents(BlueprintContainerImpl.java:682)[15:org.apache.aries.blueprin > >> t.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(Blueprin > >> tContainerImpl.java:377)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintC > >> ontainerImpl.java:269)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(Blu > >> eprintExtender.java:294)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BlueprintExtender.createContainer(Blu > >> eprintExtender.java:263)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(Blu > >> eprintExtender.java:253)[15:org.apache.aries.blueprint.core:1.4.3] > >> at > >> > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.custo > >> > mizerModified(BundleHookBundleTracker.java:500)[9:org.apache.aries.util:1 > >> .1.0] > >> at > >> > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.custo > >> > mizerModified(BundleHookBundleTracker.java:433)[9:org.apache.aries.util:1 > >> .1.0] > >> at > >> > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTrack > >> > ed.track(BundleHookBundleTracker.java:725)[9:org.apache.aries.util:1.1.0] > >> at > >> > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundl > >> > eChanged(BundleHookBundleTracker.java:463)[9:org.apache.aries.util:1.1.0] > >> at > >> > org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventH > >> > ook.event(BundleHookBundleTracker.java:422)[9:org.apache.aries.util:1.1.0] > >> at > >> > org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(Secu > >> reAction.java:1103)[org.apache.felix.framework-4.2.1.jar:] > >> at > >> > org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks( > >> EventDispatcher.java:695)[org.apache.felix.framework-4.2.1.jar:] > >> at > >> > org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDisp > >> atcher.java:483)[org.apache.felix.framework-4.2.1.jar:] > >> at > >> > org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4403)[org.apach > >> e.felix.framework-4.2.1.jar:] > >> at > >> > org.apache.felix.framework.Felix.startBundle(Felix.java:2092)[org.apache.fel > >> ix.framework-4.2.1.jar:] > >> at > >> > org.apache.felix.framework.BundleImpl.start(BundleImpl.java:955)[org.apac > >> he.felix.framework-4.2.1.jar:] > >> at > >> > org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryW > >> atcher.java:1245)[7:org.apache.felix.fileinstall:3.5.0] > >> at > >> > org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(Directory > >> Watcher.java:1217)[7:org.apache.felix.fileinstall:3.5.0] > >> at > >> > org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWa > >> tcher.java:509)[7:org.apache.felix.fileinstall:3.5.0] > >> at > >> > org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatch > >> er.java:358)[7:org.apache.felix.fileinstall:3.5.0] > >> at > >> > org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.j > >> ava:310)[7:org.apache.felix.fileinstall:3.5.0] > >> Caused by: java.lang.NoClassDefFoundError: > >> org.apache.cxf.service.model.BindingOperationInfo not found by > testroute > >> [179] > >> at com.sun.proxy.$Proxy118.<clinit>(Unknown Source) > >> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > >> Method)[:1.8.0_45] > >> at > >> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructor > >> AccessorImpl.java:62)[:1.8.0_45] > >> at > >> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon > >> structorAccessorImpl.java:45)[:1.8.0_45] > >> at > >> > java.lang.reflect.Constructor.newInstance(Constructor.java:422)[:1.8.0_45] > >> at > java.lang.reflect.Proxy.newProxyInstance(Proxy.java:739)[:1.8.0_45] > >> at > >> > org.apache.cxf.common.util.ProxyHelper.getProxyInternal(ProxyHelper.java > >> :46) > >> at > >> org.apache.cxf.common.util.ProxyHelper.getProxy(ProxyHelper.java:86) > >> at > >> > org.apache.cxf.frontend.ClientProxyFactoryBean.create(ClientProxyFactoryB > >> ean.java:175) > >> at > >> > org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create(JaxWsProxyFactoryBe > >> an.java:142) > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native > >> Method)[:1.8.0_45] > >> at > >> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j > >> ava:62)[:1.8.0_45] > >> at > >> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces > >> sorImpl.java:43)[:1.8.0_45] > >> at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_45] > >> at > >> > org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:29 > >> 7) > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:95 > >> 8) > >> at > >> > org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.ja > >> va:298) > >> ... 39 more > >> > >> > >> Best Regards, > >> -- > >> Jan Schulze > >