문제

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:

  1. Should they work by default?

  2. If not, how do I enable them? Presumably I need a suitable bundle providing URLHandlerService, but which one?

도움이 되었습니까?

해결책

  1. 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).

  2. You can find pax-url-reference via maven here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top