我的camel-cxf.xml文件中包含以下内容:
<bean id="configFile" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer">
<property name="location" value="file:${karaf.home}/etc/test.cfg"/>
</bean>test.cfg就在那里。我的pom.xml包含以下内容,可解析为2.12.0.redhat-610379版本:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
</dependency>一切都编译得很好。但是当我把它放到Fuse的deploy文件夹中时,我得到:
Caused by: java.lang.ClassNotFoundException: org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer not found by myService [257]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)因此,我假设这是我的OSGi没有驼峰/弹簧,但我现在已经做了‘功能:安装X’为骆驼和弹簧的每一个可能的变体,它没有改变任何东西。
有人知道我错过了什么吗?
发布于 2014-09-01 11:26:49
我认为您需要在捆绑包中导入org.apache.camel.spring.spi包。
https://stackoverflow.com/questions/25568174
复制相似问题