[
https://issues.apache.org/jira/browse/FELIX-5444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carsten Ziegeler resolved FELIX-5444.
-------------------------------------
Resolution: Duplicate
> HTTPService stays registered after changing Config
> --------------------------------------------------
>
> Key: FELIX-5444
> URL: https://issues.apache.org/jira/browse/FELIX-5444
> Project: Felix
> Issue Type: Bug
> Components: HTTP Service
> Affects Versions: http.jetty-3.4.0
> Environment: org.eclipse.osgi;version='3.11.0.v20160603-1336'
> Reporter: Roman Smushkevich
> Priority: Minor
>
> Each time when some Parameter of Service PID: org.apache.felix.http changes
> restarts the Jetty Server with all Connectors. Still the aold registered HTTP
> Services staing registered and connected with stopped Jetty Server:
> osgi> Services (objectClass=org.osgi.service.http.*)
> {org.osgi.service.http.HttpService,
> org.apache.felix.http.api.ExtHttpService}={org.osgi.service.http.port=8080,
> osgi.http.service.endpoints=[http://10.248.93.35:8080/],
> org.osgi.service.http.port.secure=8443, org.apache.felix.http.enable=true,
> org.apache.felix.https.enable=false,
> osgi.http.endpoint=[http://10.248.93.35:8080/], service.id=27,
> service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.runtime.HttpServiceRuntime}={osgi.http.service.id=[27],
> org.osgi.service.http.port=8080, org.osgi.service.http.port.secure=8443,
> org.apache.felix.http.enable=true, org.apache.felix.https.enable=false,
> osgi.http.endpoint=[http://10.248.93.35:8080/], service.id=28,
> service.bundleid=1, service.scope=singleton}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.HttpService,
> org.apache.felix.http.api.ExtHttpService}={org.osgi.service.http.port=8087,
> osgi.http.service.endpoints=[http://10.248.93.35:8087/,https://10.248.93.35:8443/],
> org.osgi.service.http.port.secure=8443, org.apache.felix.http.enable=true,
> org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8087/,https://10.248.93.35:8443/],
> service.id=58, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.runtime.HttpServiceRuntime}={osgi.http.service.id=[58],
> org.osgi.service.http.port=8087, org.osgi.service.http.port.secure=8443,
> org.apache.felix.http.enable=true, org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8087/,https://10.248.93.35:8443/],
> service.id=59, service.bundleid=1, service.scope=singleton}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.HttpService,
> org.apache.felix.http.api.ExtHttpService}={org.osgi.service.http.port=8086,
> osgi.http.service.endpoints=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> org.osgi.service.http.port.secure=8443, org.apache.felix.http.enable=true,
> org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> service.id=62, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.runtime.HttpServiceRuntime}={osgi.http.service.id=[62],
> org.osgi.service.http.port=8086, org.osgi.service.http.port.secure=8443,
> org.apache.felix.http.enable=true, org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> service.id=63, service.bundleid=1, service.scope=singleton}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.HttpService,
> org.apache.felix.http.api.ExtHttpService}={org.osgi.service.http.port=8087,
> osgi.http.service.endpoints=[http://10.248.93.35:8087/,https://10.248.93.35:8443/],
> org.osgi.service.http.port.secure=8443, org.apache.felix.http.enable=true,
> org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8087/,https://10.248.93.35:8443/],
> service.id=66, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.runtime.HttpServiceRuntime}={osgi.http.service.id=[66],
> org.osgi.service.http.port=8087, org.osgi.service.http.port.secure=8443,
> org.apache.felix.http.enable=true, org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8087/,https://10.248.93.35:8443/],
> service.id=67, service.bundleid=1, service.scope=singleton}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.HttpService,
> org.apache.felix.http.api.ExtHttpService}={org.osgi.service.http.port=8086,
> osgi.http.service.endpoints=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> org.osgi.service.http.port.secure=8443, org.apache.felix.http.enable=true,
> org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> service.id=70, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.runtime.HttpServiceRuntime}={osgi.http.service.id=[70],
> org.osgi.service.http.port=8086, org.osgi.service.http.port.secure=8443,
> org.apache.felix.http.enable=true, org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> service.id=71, service.bundleid=1, service.scope=singleton}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.HttpService,
> org.apache.felix.http.api.ExtHttpService}={org.osgi.service.http.port=8086,
> osgi.http.service.endpoints=[http://10.248.93.35:8086/],
> org.osgi.service.http.port.secure=8443, org.apache.felix.http.enable=true,
> org.apache.felix.https.enable=false,
> osgi.http.endpoint=[http://10.248.93.35:8086/], service.id=74,
> service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.runtime.HttpServiceRuntime}={osgi.http.service.id=[74],
> org.osgi.service.http.port=8086, org.osgi.service.http.port.secure=8443,
> org.apache.felix.http.enable=true, org.apache.felix.https.enable=false,
> osgi.http.endpoint=[http://10.248.93.35:8086/], service.id=75,
> service.bundleid=1, service.scope=singleton}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.HttpService,
> org.apache.felix.http.api.ExtHttpService}={org.osgi.service.http.port=8086,
> osgi.http.service.endpoints=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> org.osgi.service.http.port.secure=8443, org.apache.felix.http.enable=true,
> org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> service.id=78, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.runtime.HttpServiceRuntime}={osgi.http.service.id=[78],
> org.osgi.service.http.port=8086, org.osgi.service.http.port.secure=8443,
> org.apache.felix.http.enable=true, org.apache.felix.https.enable=true,
> osgi.http.endpoint=[http://10.248.93.35:8086/,https://10.248.93.35:8443/],
> service.id=79, service.bundleid=1, service.scope=singleton}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.context.ServletContextHelper}={osgi.http.whiteboard.context.name=default,
> service.ranking=-2147483648, osgi.http.whiteboard.context.path=/,
> service.id=29, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "Bundles using service"
> org.apache.felix.http.jetty_3.4.0 [1]
> {org.osgi.service.http.context.ServletContextHelper}={osgi.http.whiteboard.context.name=default,
> service.ranking=-2147483648, osgi.http.whiteboard.context.path=/,
> service.id=60, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.context.ServletContextHelper}={osgi.http.whiteboard.context.name=default,
> service.ranking=-2147483648, osgi.http.whiteboard.context.path=/,
> service.id=64, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.context.ServletContextHelper}={osgi.http.whiteboard.context.name=default,
> service.ranking=-2147483648, osgi.http.whiteboard.context.path=/,
> service.id=68, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.context.ServletContextHelper}={osgi.http.whiteboard.context.name=default,
> service.ranking=-2147483648, osgi.http.whiteboard.context.path=/,
> service.id=72, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.context.ServletContextHelper}={osgi.http.whiteboard.context.name=default,
> service.ranking=-2147483648, osgi.http.whiteboard.context.path=/,
> service.id=76, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> {org.osgi.service.http.context.ServletContextHelper}={osgi.http.whiteboard.context.name=default,
> service.ranking=-2147483648, osgi.http.whiteboard.context.path=/,
> service.id=80, service.bundleid=1, service.scope=bundle}
> "Registered by bundle:" org.apache.felix.http.jetty_3.4.0 [1]
> "No bundles using service."
> It seems, that the method JettyService.stopJetty, doesn't call
> this.controller.unregister();
> Please check my Testcase and make a patch. Sometimes, I'm not sure under
> which conditions, but my Servlet is registered with dead HTTPService when I
> use HTTP Whiteboard.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)