Apache camel Camel Beanio找不到Bean类

Apache camel Camel Beanio找不到Bean类,apache-camel,bean-io,apache-servicemix,Apache Camel,Bean Io,Apache Servicemix,我正在使用apache-servicemix-7.0.0,并使用camel-beanio(2.16.4) 因此,我定义了一个调用beanio来解析文件的路由 但是,记录映射到的类位于外部jar中 我已尝试使用以下方法包装此外部jar: 它使它成为可能 但当我部署camel blueprint.xml时,它仍然抛出: “2017-05-24 15:57:51566 | ERROR | mix-7.0.0/deploy | BlueprintCamelContext | 40-org.apache

我正在使用apache-servicemix-7.0.0,并使用camel-beanio(2.16.4)

因此,我定义了一个调用beanio来解析文件的路由

但是,记录映射到的类位于外部jar中

我已尝试使用以下方法包装此外部jar:

它使它成为可能

但当我部署camel blueprint.xml时,它仍然抛出:

“2017-05-24 15:57:51566 | ERROR | mix-7.0.0/deploy | BlueprintCamelContext | 40-org.apache.camel。 camel blueprint-2.16.4 |启动camel时出错:CamelContext(_context1)由于记录“r”无效 流“REALITY_FILE”中的ecord:无效的bean类“za.co.sci.core.shared.RealityFileRecordModel” org.beanio.BeanIOConfigurationException:流“REALITY\u FILE”中的记录“record”无效:无效的bean类 'za.co.sci.core.shared.RealityFileRecordModel' 在org.beanio.internal.compiler.ProcessorSupport.process(ProcessorSupport.java:93)[232:org.beanio:2.1。 0] .... ... 原因:java.lang.ClassNotFoundException:za.co.sci.core.shared.RealityFileRecordModel未被ESB-POC找到 [257] 位于org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1 574)[org.apache.felix.framework-5.6.1.jar:]

" 附上我的蓝图,并附上骆驼映射xml

有没有办法让骆驼路线找到这门课

谢谢,
Jose

如何添加依赖项?如果是通过maven,您是否尝试导入包含映射类的包?您好,就像我上面提到的,我使用了wrap:mvn:命令。我可以在控制台上看到它处于活动状态。如果我做一个包:导入并grep我的包,我可以在那里看到它。我也尝试过使用Camel-xml路由,但没有任何结果。请确保您自己的包导入包
za.co.sci.core.shared
和您需要的其他包