我想测试一个骆驼组件,它是我和一个同事写的。它在卡拉夫上运行,并部署了以下骆驼包:
80 │ Active │ 50 │ 2.17.1 │ camel-blueprint
81 │ Active │ 50 │ 2.17.1 │ camel-catalog
82 │ Active │ 50 │ 2.17.1 │ camel-core组件和使用该组件的蓝图也被部署。我想我错过了安装camel特性,它提供了类DefaultComponent,,所以我认为没有必要检查代码。
我得到以下错误:
java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent发布于 2019-10-11 08:29:28
我的错误是我没有正确设置Camel组件的Maven项目。为了避免这种情况,您可以开始使用原型开发骆驼组件。
所以你可以这样开始:
mvn archetype:generate -DarchetypeGroupId=org.apache.camel.archetypes -DarchetypeArtifactId=camel-archetype-component -DarchetypeVersion=2.24.2https://stackoverflow.com/questions/52931581
复制相似问题