.getName()
+ " must implement "
+ ServletLauncher.class
.getName());
}
final ServletLauncher launcher = (ServletLauncher) launcherClass
.newInstance();
final ServerEndpointConfig sec = ServerEndpointConfig.Builder
.create(WebsocketEndpoint.class,
serverUri.getPath())
.build();
sec.getUserProperties().put("address",
serverUri);
launcher.add(sec, config);
} catch (final Exception e1) {
LOG.log(Level.WARNING,
"Failed to load servlet in servletlauncher!",
e1);