What is the correct way to override the default servlet context? I am doing this...
@Component(service = ServletContextHelper.class,property = { Constants.SERVICE_RANKING+":Integer="+Integer.MAX_VALUE}) @HttpWhiteboardContext(name = "default",path = "/") public class NoSecurityContextImpl extends ServletContextHelper { What I am seeing is if a servlet is registered BEFORE the new default context it just seems to disappear, anything after gets put in the new default. When I call HttpServiceRuntime.servletDTOs I see the original default context with no servlets attached to it and my overridden one with the servlets that were registered after. failedServletDTOs,failedServletContextDTOs are empty. If I remove my override the servlets appear. What is weird is it looks like the servlet is getting put into the right context if I read the log correctly ... Registering ServletModel{id=ServletModel-4,name='com.candatag.k8s.zoo.servlet.ReadyProbe',urlPatterns=[/osgi/started],contexts=[{WB,OCM-2,default,/}]} INFO org.ops4j.pax.web.service.spi.servlet.OsgiServletContext - Unegistering OsgiServletContext{model=OsgiContextModel{WB,id=OCM-1,name='default',path='/',bundle=org.ops4j.pax.web.pax-web-extender-whiteboard,context=(supplier)}} as OSGi service for "/" context path Registering OsgiServletContext{model=OsgiContextModel{WB,id=OCM-2,name='default',path='/',bundle=com.candatag.web.util,ref={org.osgi.service.http.context.ServletContextHelper}={ service.id=57, osgi.http.whiteboard.context.name=default, service.bundleid=19, service.scope=bundle, service.ranking=2147483647, component.name=com.candatag.web.util.zoo.impl.NoSecurityContextImpl, osgi.http.whiteboard.context.path=/, component.id=22}}} as OSGi service for "/" context path Dave -- -- ------------------ OPS4J - http://www.ops4j.org - ops4j@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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/CA%2BFCLu2SbiSKmN7W3-ZQqHLYCA67vF104UCVWtU77-63tcarUA%40mail.gmail.com.