Exemple #1
0
  protected void startServer() throws Exception {
    server = configureServer();
    server.start();

    Throwable exceptionAtServerStart = server.webAppContext().getUnavailableException();
    if (exceptionAtServerStart != null) {
      server.stop();
      LOG.error("ERROR: Failed to start Go server.", exceptionAtServerStart);
      throw new RuntimeException("Failed to start Go server.", exceptionAtServerStart);
    }
  }
Exemple #2
0
 public void stop() throws Exception {
   server.stop();
 }