目前,我嘗試部署般地路線我karaf容器(在Spring DSL):駱駝路線導致缺少依賴錯誤
<?xml version="1.0" encoding="UTF-8"?>
<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
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
<bean id="milo-client" class="org.apache.camel.component.milo.client.MiloClientComponent">
<!--<property name="enableAnonymousAuthentication" value="true"/>-->
</bean>
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route id="opctorest">
<from uri="timer://simpleTimer?period=1000"/>
<log message="Triggered Route: opctorest: Sensorreading body: ${body}"/>
<to uri="milo-client:tcp://127.0.0.1:4840/freeopcua/server?namespaceUri=http://examples.freeopcua.github.io"/>
<convertBodyTo type="java.lang.String"/>
<to uri="stream:out"/>
</route>
</camelContext>
</blueprint>
該路由的包沒有安裝,但仍保留在「GRACEPERIOD 「 狀態。我修復了所有缺少的依賴關係(我認爲這沒有),但我不明白這條消息:
包251 ----------狀態:GRACEPERIOD藍圖16年11月23日2: 08時缺少的依賴關係: (&(objectClass的= org.apache.aries.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace = http://camel.apache.org/schema/blueprint))
我能做些什麼來解決這種依賴?和白羊座一樣安裝了camel-blueprint
。 Karaf是4.0.5版本。藍圖是2.16.3。
謝謝!
是'駱駝藍圖'激活你的卡拉夫容器? – usha
是:47 |活動| 50 | 2.16.3 | camel-blueprint – Fluffy
您是否安裝了camel-stream功能:安裝? –