[neeo] Fix Servlet exceptions due to non-unique names (#14554)
It seems that Pax Web nowadays checks that the Servlet names are unique. Fixes #14545 Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
parent
90b2279a29
commit
81f87385f6
|
@ -282,7 +282,10 @@ public class NeeoService implements EventSubscriber, NetworkAddressChangeListene
|
|||
sysInfo.getHostname(), ipAddress, clientBuilder);
|
||||
servlets.add(newServlet);
|
||||
|
||||
localContext.getHttpService().registerServlet(servletUrl, newServlet, new Hashtable<>(),
|
||||
Hashtable<Object, Object> initParams = new Hashtable<>();
|
||||
initParams.put("servlet-name", servletUrl);
|
||||
|
||||
localContext.getHttpService().registerServlet(servletUrl, newServlet, initParams,
|
||||
localContext.getHttpService().createDefaultHttpContext());
|
||||
logger.debug("Started NEEO Listener at {}", servletUrl);
|
||||
} catch (NamespaceException | ServletException | IOException e) {
|
||||
|
|
Loading…
Reference in New Issue