我正在使用 apache-servicemix-7.0.0,并使用 camel-beanio (2.16.4)。
所以我定义了一个调用beanio来解析文件的路由。
但是,记录映射到的类位于外部 jar 中。
我尝试使用以下方法包装这个外部 jar:
它使它可用。
但是当我部署我的骆驼 blueprint.xml 时,它仍然会抛出:
“2017-05-24 15:57:51,566 | 错误 | mix-7.0.0/deploy | BlueprintCamelContext | 40 - org.apache.camel.camel-blueprint - 2.16.4 | 启动骆驼时发生错误:CamelContext(_context1)由于无效记录 'record',在流 'REALITY_FILE' 中:无效 bean 类 'za.co.sci.core.shared.RealityFileRecordModel' org.beanio.BeanIOConfigurationException:无效记录 'record',在流 'REALITY_FILE' 中:无效 bean在 org.beanio.internal.compiler.ProcessorSupport.process(ProcessorSupport.java:93)[232:org.beanio:2.1.0] 上的类 'za.co.sci.core.shared.RealityFileRecordModel' .... .. . 由:java.lang.ClassNotFoundException: za.co.sci.core.shared.RealityFileRecordModel 在 org.apache.felix.framework.BundleWiringImpl 中的 ESB-POC [257] 未找到。findClassOrResourceByDelegation(BundleWiringImpl.java:1 574)[org.apache.felix.framework-5.6.1.jar:]
" 附上我的蓝图,并附上骆驼映射 xml
任何想法如何让骆驼路线找到这门课?
谢谢,何塞