目前,我尝试部署般地路线我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功能:安装? –