You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Richard Hierlmeier <rh...@googlemail.com> on 2022/07/22 11:33:36 UTC

Resource from HttpContext is no longer considered.

I upgraded today a Karaf instance from 4.3.7 to 4.4.1.
This instance hosts a WAB.
The context-path of the WAB is /app.
The WAB has an OSGI component that has a mandatory reference to the
HttpService.
When the HttpService is bound then this component registers with
HttpService.registerResource an HttpContext with the alias /app/assets.

In Karaf 4.3.7 this worked fine. With Karaf 4.4.1 it is no longer working.
It seems that the HttpContext.getResource(String) is never called.

How can I fix this problem?

BTW: In Karaf 4.3.7 I often used the http:list command. However this
command is no longer available in Karaf 4.4.
What is the alternative?

Regards

  Richard