use of org.glassfish.api.container.EndpointRegistrationException in project Payara by payara.
the class WebServicesApplication method start.
public boolean start(ApplicationContext startupContext) throws Exception {
cl = startupContext.getClassLoader();
try {
app = deploymentCtx.getModuleMetaData(Application.class);
DeployCommandParameters commandParams = ((DeploymentContext) startupContext).getCommandParameters(DeployCommandParameters.class);
String virtualServers = commandParams.virtualservers;
Iterator<EjbEndpoint> iter = ejbendpoints.iterator();
EjbEndpoint ejbendpoint = null;
while (iter.hasNext()) {
ejbendpoint = iter.next();
String contextRoot = ejbendpoint.contextRoot;
WebServerInfo wsi = new WsUtil().getWebServerInfoForDAS();
URL rootURL = wsi.getWebServerRootURL(ejbendpoint.isSecure);
dispatcher.registerEndpoint(contextRoot, httpHandler, this, virtualServers);
// Fix for issue 13107490 and 17648
if (wsi.getHttpVS() != null && wsi.getHttpVS().getPort() != 0) {
logger.log(Level.INFO, LogUtils.EJB_ENDPOINT_REGISTRATION, new Object[] { app.getAppName(), rootURL + contextRoot });
}
}
} catch (EndpointRegistrationException e) {
logger.log(Level.SEVERE, LogUtils.ENDPOINT_REGISTRATION_ERROR, e.toString());
}
return true;
}
Aggregations