You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Thomas Diesler (JIRA)" <ji...@apache.org> on 2014/02/05 11:16:10 UTC

[jira] [Created] (FELIX-4415) Cannot associate HttpService instance with ServletContext

Thomas Diesler created FELIX-4415:
-------------------------------------

             Summary: 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)