Reputation: 1674
I've got this in my camel-cxf.xml file:
<bean id="configFile" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer">
<property name="location" value="file:${karaf.home}/etc/test.cfg"/>
</bean>
test.cfg is there. My pom.xml has the following, which resolves to version 2.12.0.redhat-610379:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring</artifactId>
</dependency>
It all compiles fine. But when I drop it in Fuse's deploy folder, I get:
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)
So I presume it's my OSGi not having camel/spring, but I have now done 'features:install X' for every possible variation of camel and spring, and it doesn't change anything.
Does anyone know what I'm missing?
Upvotes: 0
Views: 1117
Reputation: 3291
I think you need to import the package of org.apache.camel.spring.spi in your bundle.
Upvotes: 1