Dear community,

I tried to configure the Jetty global configuration for camel-jetty as 
described here


https://camel.apache.org/components/latest/jetty-component.html
(Section Configuring general SSL properties) with following Blueprint DSL

<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 
https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd";>

        <bean id="jetty" 
class="org.apache.camel.component.jetty.JettyHttpComponent">
                <property name="sslSocketConnectorProperties">
                        <map>
                                <entry key="password" value="xxxxx"/>
                                <entry key="keyPassword" value="xxxxx"/>
                                <entry key="keystore" 
value="${karaf.home}/etc/keystore.p12"/>
                                <entry key="needClientAuth" value="false"/>
                                <entry key="truststore" 
value="${karaf.home}/etc/truststore.jks"/>
                        </map>
                </property>
        </bean>

</blueprint>

I'm getting an error

2020-02-07T21:39:52,375 | ERROR | fileinstall-/opt/apache-karaf-4.2.7/deploy | 
BlueprintContainerImpl           | 80 - org.apache.aries.blueprint.core - 
1.10.2 | Unable to start container for blueprint bundle 
isp.jettyHttpComponent.xml/0.0.0
org.osgi.service.blueprint.container.ComponentDefinitionException: Error when 
instantiating bean jetty of class 
org.apache.camel.component.jetty.JettyHttpComponent
        at 
org.apache.aries.blueprint.container.BeanRecipe.wrapAsCompDefEx(BeanRecipe.java:362)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:352)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:283)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:685)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:666)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:81) 
~[!/:1.10.2]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
~[?:1.8.0_242]
        at 
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:90) 
~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:360)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:190)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:737)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:433)
 [!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:298)
 [!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:311)
 [!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:280)
 [!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:276)
 [!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:266)
 [!/:1.10.2]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
 [!/:1.10.2]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
 [!/:1.10.2]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
 [!/:1.10.2]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
 [!/:1.10.2]
        at 
org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
 [!/:1.10.2]
        at 
org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1179)
 [org.apache.felix.framework-5.6.12.jar:?]
        at 
org.apache.felix.framework.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:730)
 [org.apache.felix.framework-5.6.12.jar:?]
        at 
org.apache.felix.framework.EventDispatcher.fireBundleEvent(EventDispatcher.java:485)
 [org.apache.felix.framework-5.6.12.jar:?]
        at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4579) 
[org.apache.felix.framework-5.6.12.jar:?]
        at org.apache.felix.framework.Felix.startBundle(Felix.java:2174) 
[org.apache.felix.framework-5.6.12.jar:?]
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998) 
[org.apache.felix.framework-5.6.12.jar:?]
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260)
 [!/:3.6.4]
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233)
 [!/:3.6.4]
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221)
 [!/:3.6.4]
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515)
 [!/:3.6.4]
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365)
 [!/:3.6.4]
        at 
org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316)
 [!/:3.6.4]
Caused by: java.lang.InstantiationException
        at 
sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:48)
 ~[?:1.8.0_242]
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
~[?:1.8.0_242]
        at 
org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:369)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:839)
 ~[!/:1.10.2]
        at 
org.apache.aries.blueprint.container.BeanRecipe.getInstanceFromType(BeanRecipe.java:350)
 ~[!/:1.10.2]
        ... 32 more

Any ideas and hints? Tx in advance.
- Gerald

Reply via email to