[ https://issues.apache.org/jira/browse/FELIX-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13891979#comment-13891979 ]
Felix Meschberger commented on FELIX-4415: ------------------------------------------ [RFC-1089|https://github.com/osgi/design/blob/master/rfcs/rfc0189/rfc-0189-Http_Service_Updates.pdf] for the upcoming Http Service update currently defines the {{osgi.http.endpoint}} service property to list the endpoint URLs (scheme, authority, context path) served by the Http Service instance. But this property is defined to be optional. I asked the experts whether we can change this property to be mandatory and actually be a relative URL: if the scheme and authority is know it is included, otherwise it is just the servlet context path served. > 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.1.5#6160)