class ServerWebApp extends Server implements ServletContextListener {

  @Override
  public void contextInitialized(ServletContextEvent event) {
    try {
      init();
    } catch (ServerException ex) {
      event.getServletContext().log("ERROR: " + ex.getMessage());
      throw new RuntimeException(ex);
    }
  }

  protected  ServerWebApp(String name, String homeDir, String configDir,
      String logDir, String tempDir, Configuration config);
  protected  ServerWebApp(String name, String homeDir, Configuration config);
  public  ServerWebApp(String name);

}