Camel-Beanio找不到Bean Class

时间:2017-05-24 15:06:19

标签: apache-camel bean-io apache-servicemix

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

所以我已经定义了一个调用beanio来解析文件的路由。

然而,记录映射到的类位于外部jar中。

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

https://access.redhat.com/documentation/en-US/Red_Hat_JBoss_Fuse/6.0/html/Deploying_into_the_Container/files/UrlHandlers-Wrap.html

它使它可用。

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

" 2017-05-24 15:57:51,566 |错误| mix-7.0.0 / deploy | BlueprintCamelContext | 40 - org.apache.camel。 骆驼蓝图 - 2.16.4 |启动Camel期间出错:CamelContext(_context1)到期无效记录&#r; r ecord',在流' REALITY_FILE':无效的bean类' za.co.sci.core.shared.RealityFileRecordModel' org.beanio.BeanIOConfigurationException:无效的记录'记录',在流' REALITY_FILE':无效的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:ESB-POC找不到za.co.sci.core.shared.RealityFileRecordModel  [257]         在org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1 574)[org.apache.felix.framework-5.6.1.jar:]

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

任何想法如何使骆驼路线找到这个类?

谢谢, 何

0 个答案:

没有答案
相关问题