manager.init();
manager.start(false);
} else {
// WS
try {
final ServerService cxfService = (ServerService) cl.loadClass("org.apache.openejb.server.cxf.CxfService").newInstance();
cxfService.init(properties);
cxfService.start();
services.add(cxfService);
} catch (final ClassNotFoundException ignored) {
// no-op
} catch (final Exception e) {
logger.log(Level.SEVERE, "Webservices failed to start", e);
}
// REST
try {
final ServerService restService = (ServerService) cl.loadClass("org.apache.openejb.server.cxf.rs.CxfRSService").newInstance();
restService.init(properties);
restService.start();
services.add(restService);
} catch (final ClassNotFoundException ignored) {
// no-op
} catch (final Exception e) {
logger.log(Level.SEVERE, "REST failed to start", e);