[
https://issues.apache.org/jira/browse/FELIX-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved FELIX-4415.
-------------------------------------
Resolution: Implemented
The endpoint is mandatory and might also be relative, therefore resolving this
issue
> Cannot associate HttpService instance with ServletContext
> ---------------------------------------------------------
>
> Key: FELIX-4415
> URL: https://issues.apache.org/jira/browse/FELIX-4415
> Project: Felix
> Issue Type: Bug
> Components: HTTP Service
> Affects Versions: http-2.2.1
> Reporter: Thomas Diesler
>
> A tracker like this
> {code}
> tracker = new ServiceTracker<HttpService, HttpService>(context,
> HttpService.class, null) {
> @Override
> public HttpService addingService(ServiceReference<HttpService>
> sref) {
> httpService = super.addingService(sref);
> registerHttpServiceServlet();
> return httpService;
> }
> };
> tracker.open();
> {code}
> cannot associate an HttpService instance with the servlet context that
> registered it. Adding the contextPath as service property would be a possible
> solution.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)