0
我有这在我的骆驼cxf.xml文件:在FuseESB部署JAR得到ClassNotFoundException的
<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>
这一切都编译得很好。但是,当我在保险丝的部署文件夹拖放,我得到:
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”骆驼的每一个可能的变化和春天,它不会改变任何东西。
有谁知道我错过了什么?
我导入骆驼春天已经在pom ...如果我看着maven jar,它有org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer(.class) – djb 2014-09-01 09:24:09
不,你需要更新捆绑清单为它的文件。请看看camel-example-osgi,maven bundle插件可以帮助您生成正确的软件包清单。 – 2014-09-02 03:36:19
嗯,没有运气。我从camel-example-osgi中添加了build-helper-maven-plugin和features.xml。然后我得到:“未找到java.lang.ClassNotFoundException:org.apache.camel.Processor”。明天我会继续努力。 – djb 2014-09-02 15:07:31