karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: java.lang.NoClassDefFoundError: javax/xml/transform/Result
Date Wed, 03 Apr 2019 12:41:02 GMT
Hi,

Are you using JDK 8 or 9 ?

Regards
JB

On 03/04/2019 13:34, leonardchicco wrote:
> Hi, 
> With reference to the thread 
> http://karaf.922171.n3.nabble.com/Karaf-4-2-4-Custom-distribution-with-ActiveMQ-5-15-9-fails-during-start-tt4055549.html
> <http://karaf.922171.n3.nabble.com/Karaf-4-2-4-Custom-distribution-with-ActiveMQ-5-15-9-fails-during-start-tt4055549.html>
 
> Now I have another problem, when i install a bundle route (camel blueprint)
> that use cxf, sftp and xslt transformation i've the following stacktrace
> 
> 
> 
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to
> instantiate components
>         at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:721)
> ~[46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:413)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:278)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:299)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:268)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:264)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:254)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         at
> org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
> [46:org.apache.aries.blueprint.core:1.10.1]
>         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:4579)
> [?:?]
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:2174)
> [?:?]
>         at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
> [?:?]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260)
> [10:org.apache.felix.fileinstall:3.6.4]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233)
> [10:org.apache.felix.fileinstall:3.6.4]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520)
> [10:org.apache.felix.fileinstall:3.6.4]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
> [10:org.apache.felix.fileinstall:3.6.4]
>         at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
> [10:org.apache.felix.fileinstall:3.6.4]
> Caused by: java.lang.NoClassDefFoundError: javax/xml/transform/Result
>         at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:?]
>         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
> ~[?:?]
>         at java.lang.Class.getConstructors(Class.java:1651) ~[?:?]
>         at
> org.apache.aries.blueprint.utils.generics.TypeInference.findConstructors(TypeInference.java:180)
> ~[?:?]
>         at
> org.apache.aries.blueprint.utils.generics.TypeInference.findMatchingConstructors(TypeInference.java:124)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.findMatchingConstructors(BeanRecipe.java:373)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:346)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:283)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
> ~[?:?]
>         at
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
> ~[?:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
>         at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:717)
> ~[?:?]
>         ... 22 more
> Caused by: java.lang.ClassNotFoundException: javax.xml.transform.Result not
> found by dish-std-tracelink-inst001 [253]
>         at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1639)
> ~[?:?]
>         at
> org.apache.felix.framework.BundleWiringImpl.access$200(BundleWiringImpl.java:80)
> ~[?:?]
>         at
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:2053)
> ~[?:?]
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
>         at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:?]
>         at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
> ~[?:?]
>         at java.lang.Class.getConstructors(Class.java:1651) ~[?:?]
>         at
> org.apache.aries.blueprint.utils.generics.TypeInference.findConstructors(TypeInference.java:180)
> ~[?:?]
>         at
> org.apache.aries.blueprint.utils.generics.TypeInference.findMatchingConstructors(TypeInference.java:124)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.findMatchingConstructors(BeanRecipe.java:373)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:346)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:283)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
> ~[?:?]
>         at
> org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81)
> ~[?:?]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]
>         at
> org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190)
> ~[?:?]
>         at
> org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:717)
> ~[?:?]
>         ... 22 more
> 
> Wath is the problem? what is missing?
> 
> Thanks in advance.
> 
> PS: The same bundle is running correctly in the custom distribution with:
> 
>         <karaf.version>4.1.3</karaf.version>
>         <camel.version>2.19.1</camel.version>
>         <activemq.version>5.15.4</activemq.version>
>         <hawtio.version>1.5.10</hawtio.version>
> 
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
> 

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

Mime
View raw message