[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:
Wouter Born 2023-03-08 20:19:13 +01:00 committed by GitHub
parent 90b2279a29
commit 81f87385f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {