【发布时间】:2015-11-20 11:22:08
【问题描述】:
我有一个骆驼路线,它使用骆驼绑定来转换数据。 我正在使用功能来定义所有需要捆绑的工作路线,并且在我的 pom 中我有骆驼绑定的依赖。
我在 Fabric 中创建了一个容器,并添加了一个父级为“feature-camel”的自定义配置文件。我在此配置文件中添加了 camel-bindy 功能和我自己的功能(注意,如果我不添加 camel-bindy esplicity,我会获得相同的结果)。
容器尝试启动骆驼路线但失败,这是错误:
由于未解决的依赖关系 [(&(dataformat=bindy)(objectClass=org.apache.camel.spi.DataFormatResolver))],无法启动 bundle customBundle 的蓝图容器
这是我在错误发生前几分钟在日志中发现的:
DeploymentAgent 更新为 {attribute.parents=mytria-demouno, fabric.zookeeper.pid=io.fabric8.agent, feature.camel-bindy=camel-bindy, feature.camel-blueprint=camel-blueprint, feature.camel -core=camel-core,feature.esercizio1-feature/2.0.0=esercizio1-feature/2.0.0,feature.fabric-agent=fabric-agent,feature.fabric-camel=fabric-camel,feature.fabric-core =fabric-core,feature.fabric-git=fabric-git,feature.fabric-git-server=fabric-git-server,feature.fabric-jaas=fabric-jaas,feature.fabric-rest=fabric-rest.. .
如果我查看容器的 hawtio 控制台的捆绑页面,我可以看到 camel-bindy 已部署并具有预期的版本。
这是功能文件:
<?xml version="1.0" encoding="UTF-8"?>
<features name="esercizio1-feature_repository">
<feature name="esercizio1-feature" version="2.0.0">
<feature>camel-blueprint</feature>
<feature dependency="true">camel-bindy</feature>
<feature>camel-sql</feature>
<feature>spring-jdbc</feature>
<feature>camel-cxf</feature>
<bundle dependency='true'>mvn:it.demo/mysql-fragment/2.0.0</bundle>
<bundle>mvn:mysql/mysql-connector-java/5.1.32</bundle>
<bundle>mvn:it.demo/esercizio1/2.0.0</bundle>
</feature>
</features>
我也尝试更改配置文件的父级并放入保险丝,但没有任何变化......有什么建议吗?
【问题讨论】:
标签: apache-camel jbossfuse fabric8 bindy