我正在Fuse Karaf服务器(7.1.0)上运行示例Red Hat Fuse应用程序。这是我的blueprint.xml:
<?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 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean class="com.videa.esb.processors.MyProcessor" id="myProcessor" scope="singleton"/>
<camelContext id="_context1" xmlns="http://camel.apache.org/schema/blueprint">
<restConfiguration bindingMode="off" component="spark-rest"
contextPath=" " port="9090"/>
<rest id="usersmanager" path="/user">
<get id="users" uri="/users">
<to uri="direct:users"/>
</get>
</rest>
<route id="_route1">
<from id="_from1" uri="direct:users"/>
<setBody id="_setBody1">
<sql>select * from esb_user</sql>
</setBody>
<to id="_to1" uri="jdbc:esb_demo"/>
<log id="_log1" message="Begin Process"/>
<process id="_process1" ref="myProcessor"/>
<log id="_log2" message="Done Process"/>
</route>
</camelContext>
</blueprint>
服务器启动后,它在我的应用程序上获得GracePeriod状态。这是我运行bundle:diag
时的结果:
Empty Camel Blueprint Example [connectdb] (265)
-----------------------------------------------
Status: GracePeriod
Blueprint
7/30/19 12:05 PM
Missing dependencies:
(&(language=sql)(objectClass=org.apache.camel.spi.LanguageResolver))
Declarative Services
CdiOsgi
我尝试安装一些捆绑软件,例如camel-sql,camel-jdbc,camel-script ...,但是它不起作用。如何解决此错误?
谢谢!