karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Karaf 4.1.1 and CXF 3.1.12
Date Wed, 19 Jul 2017 07:25:00 GMT
Hi Jochen,

I guess your issue is in your bundle.

Can you share your code or provide a simple test case ?

Thanks,
Regards
JB

On 07/19/2017 09:23 AM, jochenw wrote:
> Hi JB,
> 
> sounds easier to add the compatibility fragment bundle  - seems to work with
> blueprint.core 1.8. Below the exception I can see on startup before adding
> this. Installation of CXF works correctly, starting up the bundle using CXF
> fails. I assume the root cause is that the
> cxf-rt-transports-http-jetty-3.1.12 bundle has
> org.apache.aries.blueprint.reflect;version="
>   [1.0,2)" in its Import-Package section with resolution:=optional
> 
> As said, I have a workaround. But maybe there was a reason for not taking in
> the compabtibility bundle any longer in the 4.1 / 4.1.1 aries-blueprint
> feature.
> 
> Regards,
> Jochen
> 
> 
> 2017-07-19T09:12:37,970 | ERROR | pool-3-thread-1  | BlueprintContainerImpl
> | 151 - org.apache.aries.blueprint.core - 1.8.0 | Unable to start blueprint
> container for bundle XYZ
> java.lang.NoClassDefFoundError:
> org/apache/aries/blueprint/reflect/MapMetadataImpl
> 	at
> org.apache.cxf.transport.http_jetty.blueprint.JettyServerEngineFactoryParser.parseEngineConnector(JettyServerEngineFactoryParser.java:110)
> ~[?:?]
> 	at
> org.apache.cxf.transport.http_jetty.blueprint.JettyServerEngineFactoryParser.parse(JettyServerEngineFactoryParser.java:86)
> ~[?:?]
> 	at
> org.apache.cxf.transport.http_jetty.blueprint.HTTPJettyTransportNamespaceHandler.parse(HTTPJettyTransportNamespaceHandler.java:71)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.parser.Parser.parseCustomElement(Parser.java:1369)
> ~[?:?]
> 	at org.apache.aries.blueprint.parser.Parser.loadComponents(Parser.java:427)
> ~[?:?]
> 	at org.apache.aries.blueprint.parser.Parser.populate(Parser.java:331)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:350)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:277)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:300)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:269)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:265)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:255)
> ~[?:?]
> 	at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
> ~[?:?]
> 	at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
> ~[?:?]
> 	at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
> ~[?:?]
> 	at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
> ~[?:?]
> 	at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
> ~[?:?]
> 	at
> org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
> ~[?:?]
> 	at
> org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
> ~[?:?]
> 	at
> org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
> ~[?:?]
> 	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4562) ~[?:?]
> 	at org.apache.felix.framework.Felix.activateBundle(Felix.java:2229) ~[?:?]
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:2144) ~[?:?]
> 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) ~[?:?]
> 	at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984) ~[?:?]
> 	at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.startBundle(FeaturesServiceImpl.java:1281)
> ~[?:?]
> 	at
> org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:890)
> ~[?:?]
> 	at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1170)
> ~[?:?]
> 	at
> org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$0(FeaturesServiceImpl.java:1069)
> ~[?:?]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
> 	at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:?]
> 	at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:?]
> 	at java.lang.Thread.run(Thread.java:748) [?:?]
> Caused by: java.lang.ClassNotFoundException:
> org.apache.aries.blueprint.reflect.MapMetadataImpl not found by
> org.apache.cxf.cxf-rt-transports-http-jetty [208]
> 	at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1550)
> ~[?:?]
> 	at
> org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:79)
> ~[?:?]
> 	at
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1958)
> ~[?:?]
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
> 	... 33 more
> 
> 
> 
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Karaf-4-1-1-and-CXF-3-1-12-tp4051041p4051055.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message