Hi,

I've already asked on the general OSGi Dev mailing list, but I think this might be a more appropriate place to ask:

I just tried to get a ServletContextListener to work, but did not succeed, although everything is done as defined by the spec.

Here you can find a minimal example of my setup https://github.com/Sandared/io.jatoms.osgi.possiblebugs.scl

The Servlet I'm registering is working fine, but the ServletContextListener that I registered too is never called. Even if I call getServletContext() from within the Servlet, my Listener is never called.

I would have expected the ServletContextListener to be called at least once, after a DefaultServletContext has been created by the ServletContainer, or am I wrong with this assumption?

Kind regards,
Thomas

Reply via email to