reference protocol support in Karaf
-
02-06-2021 - |
Question
When I tried to use reference:file:/path/to.jar
as a bundle URL in Karaf integration tests, I got "Unknown protocol: reference" errors. There are some mentions of reference:
URLs on Karaf mailing list, but this isn't clear to me:
Should they work by default?
If not, how do I enable them? Presumably I need a suitable bundle providing URLHandlerService, but which one?
Solution
The URL handlers in Karaf are provided by the Pax-Url project, I don't think the reference one is provided by default (as primarily for test support).
You can find pax-url-reference via maven here
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow