Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring 在FuseESB中部署JAR会获得ClassNotFoundException_Spring_Maven_Apache Camel_Apache Karaf_Fuseesb - Fatal编程技术网

Spring 在FuseESB中部署JAR会获得ClassNotFoundException

Spring 在FuseESB中部署JAR会获得ClassNotFoundException,spring,maven,apache-camel,apache-karaf,fuseesb,Spring,Maven,Apache Camel,Apache Karaf,Fuseesb,我的camel-cxf.xml文件中有: <bean id="configFile" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer"> <property name="location" value="file:${karaf.home}/etc/test.cfg"/> </bean> 所以我认为我的OSGi没有camel/spring,但我现在已

我的camel-cxf.xml文件中有:

<bean id="configFile" class="org.apache.camel.spring.spi.BridgePropertyPlaceholderConfigurer">
        <property name="location" value="file:${karaf.home}/etc/test.cfg"/>
</bean>
所以我认为我的OSGi没有camel/spring,但我现在已经为camel和spring的每一个可能的变体完成了“功能:安装X”,并且它没有改变任何东西


有人知道我遗漏了什么吗?

我想你需要在你的包中导入org.apache.camel.spring.spi包。

我已经在pom中导入了camel-spring。。。如果我查看maven jar,它有org.apache.camel.spring.spi.BridgePropertyPlaceHolderConfigure(.class)否,您需要为它更新包清单文件。请看一看camel示例osgi,maven bundle插件可以帮助您生成正确的bundle manifest.hmm,还不走运。我添加了buildhelpermaven插件和camel示例osgi中的features.xml。然后我得到:“java.lang.ClassNotFoundException:org.apache.camel.Processor not found”。我明天会做更多的工作。我建议你看看骆驼父母的maven bundle的设置。它可以帮助您设置正确的清单。嘿,Willem,谢谢,是的,我终于找到了在FUSE中部署非OSGi捆绑包的方法。我肯定有一天我会发现需要部署一个OSGi包,所以我会在某一天查看这个答案。
<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)