首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在KURA框架中配置apache CAMEL

如何在KURA框架中配置apache CAMEL
EN

Stack Overflow用户
提问于 2015-06-05 14:50:18
回答 1查看 417关注 0票数 1

我在Apache camel中工作,为了节流和其他目的,它必须包含在KURA框架中,所以我遵循了this link。我已经提供了KuraRouter(来自jar文件)作为KURA项目中的主类,而不是HelloOsgi,并且在component.xml文件中,启动和停止该类中的函数作为激活和停用methods.But,当我运行它时,它显示以下错误消息!

代码语言:javascript
复制
Exception occurred while creating new instance of component Component[
    name = org.apache.camel.component.kura.KuraRouter
    activate = start
    deactivate = stop
    modified = 
    configuration-policy = optional
    factory = null
    autoenable = true
    immediate = true
    implementation = org.apache.camel.component.kura.KuraRouter
    state = Unsatisfied
    properties = 
    serviceFactory = false
    serviceInterface = null
    references = null
    located in bundle = org.eclipse.kura.example.hello_osgi_1.0.0.qualifier [20]
] 
!STACK 0
java.lang.ClassNotFoundException: org.apache.camel.component.kura.KuraRouter

我在Kura中配置camel是错误的,有什么好的步骤可以解决这个问题吗?

Manifest.MF文件是

代码语言:javascript
复制
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Hello world Example With Logger
Bundle-SymbolicName: org.eclipse.kura.example.hello_osgi
Bundle-Version: 1.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ClassPath: .,/junit.jar,
 camel-core-2.15.2.jar,
 camel-core-osgi-2.15.2.jar,
 org.osgi.core-4.3.0.jar,
 slf4j-api-1.6.1.jar,
 camel-kura-2.15.2.jar,
 commons-management-1.0.jar,
 apache-activemq-4.1.1.jar
Import-Package: org.eclipse.kura.core.configuration;version="0.2.0",
 org.json,
 org.osgi.service.component;version="1.2.0",
 org.slf4j;version="1.6.4",
 org.osgi.framework;version="1.3.0"
Service-Component: component.xml

而component.xml文件是

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" activate="start" deactivate="stop" enabled="true" immediate="true" name="org.apache.camel.component.kura.KuraRouter">

 <implementation class="org.apache.camel.component.kura.KuraRouter"/>

</scr:component>
EN

回答 1

Stack Overflow用户

发布于 2015-11-30 15:48:34

启动Kura Camel项目的最好方法是使用这个1快速入门。更多细节可以在这里找到2。

如果有任何问题,请随时联系我。:)

1 2

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30660111

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档