web:servlet-list shows servlets of stopped bundles

29 views
Skip to first unread message

Richard Hierlmeier

unread,
Jul 29, 2022, 5:42:17 AM7/29/22
to OPS4J

After stopping a WAB bundle the web:servlet-list command still displays the servlet of this bundle:

de@root()> web:servlet-list
Bundle ID | Name                   | Class                                                                   | Context Path(s) | URLs                        | Type       | Context Filter
----------+------------------------+-------------------------------------------------------------------------+-----------------+-----------------------------+------------+--------------------------------------------
76        | default                | org.ops4j.pax.web.service.jetty.internal.web.JettyResourceServlet       | /hello          | /                           | WAB        | -
76        | jsp                    | org.ops4j.pax.web.jsp.JspServlet                                        | /hello          | *.jspx, *.jsp               | WAB        | -

de@root()> stop 76

de@root()> web:servlet-list
Bundle ID | Name                   | Class                                                                   | Context Path(s) | URLs                        | Type       | Context Filter
----------+------------------------+-------------------------------------------------------------------------+-----------------+-----------------------------+------------+--------------------------------------------
76        | default                | org.ops4j.pax.web.service.jetty.internal.web.JettyResourceServlet       | /hello          | /                           | WAB        | -
76        | jsp                    | org.ops4j.pax.web.jsp.JspServlet                                        | /hello          | *.jspx, *.jsp               | WAB        | -

Is this a bug or a feature?

Regards

  Richard



Grzegorz Grzybek

unread,
Jul 29, 2022, 5:47:45 AM7/29/22
to op...@googlegroups.com
Hello

This looks like a bug. When WAB is stopped, pax-web-extender-war should unregister everything from this WAB (web elements and contexts).
What is this WAB you're using?
What version of Karaf / Pax Web do you use?

regards
Grzegorz Grzybek

--
--
------------------
OPS4J - http://www.ops4j.org - op...@googlegroups.com

---
You received this message because you are subscribed to the Google Groups "OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ops4j+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/77b378f3-9459-4905-ab7d-f56c218fa33bn%40googlegroups.com.

Grzegorz Grzybek

unread,
Jul 29, 2022, 5:51:31 AM7/29/22
to op...@googlegroups.com

I checked with karaf 4.4.1-SNAPSHOT and pax-web 8.0.4 and I got:

karaf@root()> install -s mvn:io.hawt/hawtio-osgi/2.15.0/war
Bundle ID: 76
karaf@root()> web:wab-list Context Path │ Bundle ID │ Symbolic Name │ State │ Base URL ─────────────┼───────────┼─────────────────────┼──────────┼───────────────────────────── /hawtio │ 76 │ io.hawt.hawtio-osgi │ Deployed │ http://127.0.0.1:8181/hawtio
karaf@root()> web:servlet-list Bundle ID │ Name │ Class │ Context Path(s) │ URLs │ Type │ Context Filter ──────────┼───────────────┼───────────────────────────────────────────────────────────────────┼─────────────────┼──────────────┼──────┼─────────────── 76 │ default │ org.ops4j.pax.web.service.jetty.internal.web.JettyResourceServlet │ /hawtio │ / │ WAB │ - 76 │ jolokia-agent │ io.hawt.web.servlets.JolokiaConfiguredAgentServlet │ /hawtio │ /jolokia/* │ WAB │ - 76 │ jolokia-proxy │ io.hawt.web.proxy.ProxyServlet │ /hawtio │ /proxy/* │ WAB │ - 76 │ keycloak │ io.hawt.web.auth.keycloak.KeycloakServlet │ /hawtio │ /keycloak/* │ WAB │ - 76 │ login │ io.hawt.web.auth.LoginServlet │ /hawtio │ /auth/login │ WAB │ - 76 │ logout │ io.hawt.web.auth.LogoutServlet │ /hawtio │ /auth/logout │ WAB │ - 76 │ plugin │ io.hawt.web.plugin.PluginServlet │ /hawtio │ /plugin/* │ WAB │ - 76 │ user │ io.hawt.web.auth.keycloak.KeycloakUserServlet │ /hawtio │ /user/* │ WAB │ -
karaf@root()> stop 76
karaf@root()> web:servlet-list Bundle ID │ Name │ Class │ Context Path(s) │ URLs │ Type │ Context Filter ──────────┼──────┼───────┼─────────────────┼──────┼──────┼───────────────
karaf@root()>




rega
regards
Grzegorz Grzybek

pt., 29 lip 2022 o 11:42 'Richard Hierlmeier' via OPS4J <op...@googlegroups.com> napisał(a):

Richard Hierlmeier

unread,
Aug 3, 2022, 3:43:43 AM8/3/22
to OPS4J
I am using Karaf 4.4.1 and PAX-WEB 8.06.

I can confirm that the servlets disappears.  The problem is that my bundle does not stop.

Thank you

  Richard

Grzegorz Grzybek

unread,
Aug 16, 2022, 7:11:38 AM8/16/22
to op...@googlegroups.com
Hello


śr., 3 sie 2022 o 09:43 'Richard Hierlmeier' via OPS4J <op...@googlegroups.com> napisał(a):
I am using Karaf 4.4.1 and PAX-WEB 8.06.

I can confirm that the servlets disappears.  The problem is that my bundle does not stop.

May I see the bundle?

regards
Grzegorz Grzybek
 
Reply all
Reply to author
Forward
0 new messages