Hello
When installing (for example in Whiteboard) two servlets with the same
name, you should see something like this:
2022-08-22T08:43:10,664 | WARN | paxweb-config-1-thread-1 | ServerModel
| 83 - org.ops4j.pax.web.pax-web-spi - 8.0.6 | *Skipped
registration* of
ServletModel{
Hi Thomas and Grzegorz,
I cannot say whether this problem still exists, because I rolled back the
affected installation to Karaf 4.3.
I hope I can find this week some time to reproduce the problem (and to test
your proposed fix).
Does PAX-WEB 8 produce a warning in the logs when such a situation
Hi Richard,
not sure if this issue is still open for you, but what I observed in a
similar case is, that if there are two servlets with the same name in the
same context, this leads to one of them not being registered.
As the default name for your servlet would be javax.servlet.Servlet this
might
Hello
If you set DEBUG logging level for org.ops4j.pax.web logger, you should see
A LOT of information about how servlets are discovered and registered into
the runtime. Without the logs, I can't tell much - especially if (as you've
mentioned) it's sporadic problem...
regards
Grzegorz Grzybek
po
I upgraded last week a system to Karaf 4.4.1. I have a sporadic problem
with this system.
The system contains a small bundle with this default servlet:
@Component(service = Servlet.class, scope = ServiceScope.PROTOTYPE)
@HttpWhiteboardServletPattern("/")
@HttpWhiteboardContextSelect("(osgi.http.w