保险丝 Karaf rest-dsl-simple 丢失

问题描述

在 Fuse 中尝试 Fuse Karaf 快速入门“rest-dsl-simple”构建和安装似乎成功,但测试没有成功。两者都说无法访问站点

在 Fuse.log 中我看到...

2021-03-28 08:34:34,680 | INFO  | FelixStartLevel      | o.a.k.s.i.a.o.CommandExtension   | 152 - org.apache.karaf.shell.core - 4.2.9.fuse-780023-redhat-00001 | Command registration delayed for bundle org.apache.karaf.http.core/4.2.9.fuse-780023-redhat-00001. Missing service: [org.apache.karaf.http.core.ServletService,org.apache.karaf.http.core.ProxyService]

然后我看到我的包设置为失败...

2021-03-28 08:34:43,066 | ERROR |  Event dispatcher: 1 | o.a.c.b.BlueprintCamelContext    | 62 - org.apache.camel.camel-blueprint - 2.23.2.fuse-780036-redhat-00001 | Error occurred during starting CamelContext: fusequickstart-restdsl-simple-camel
org.apache.camel.FailedToCreateRouteException: Failed to create route route3: Route(route3)[[From[rest://get:/simplerest:/get?componentNam... because of No bean Could be found in the registry for: restlet of type: org.apache.camel.spi.RestConsumerFactory
    at

我需要安装哪些功能才能纠正此错误

解决方法

我通过访问 http://localhost:8181/hawtio/osgi/features 并过滤 REST 功能并安装它们来修复它。是的,我知道霰弹枪的方法,但它会确保我在路上选择的任何技术都可能被覆盖。

现在 rest-dsl-simple fuse karaf 快速入门正在运行,现在我可以转到我的代码,因为我知道 fuse-karaf 引擎正在正常运行。

:-)