mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
08.55.2007 493ef6283b84aae15f4642299df3e0ddee56fcd9
Remove explicit references to some classes in the org.opends.server package which broke the QuickSetup (the user had to wait till OpenDS.jar was downloaded).  Also modify the code to have a localized message when the server is failed to start in the connection handlers mode.
2 files modified
18 ■■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties 2 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java 16 ●●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties
@@ -871,6 +871,8 @@
error-importing-ldif=Error Importing LDIF File.
error-import-automatically-generated=Error Importing Automatically- Generated \
Data when invoked with arguments: {0}".
error-starting-server-with-no-connection-handlers=Error Starting Server with \
no connection handlers: {0}.
error-starting-server=Error Starting Directory Server.
error-starting-server-in-windows=Could not connect to Server after Start.  \
If you have a firewall configured check that it allows connections to port {0}.
opends/src/quicksetup/org/opends/quicksetup/ui/GuiApplication.java
@@ -479,18 +479,12 @@
      LOG.log(Level.INFO, msg, e);
      throw new ApplicationException(ApplicationException.Type.IMPORT_ERROR,
          msg, e);
    } catch (org.opends.server.types.InitializationException e) {
      String msg = "Failed to start server due to initialization error:" +
      e.getLocalizedMessage();
      LOG.log(Level.INFO, msg, e);
    } catch (Throwable t) {
      String msg = getMsg("error-starting-server-with-no-connection-handlers",
          (t.getMessage() == null) ? t.toString() : t.getMessage());
      LOG.log(Level.INFO, msg, t);
      throw new ApplicationException(ApplicationException.Type.IMPORT_ERROR,
          msg, e);
    } catch (org.opends.server.config.ConfigException e) {
      String msg = "Failed to start server due to configuration error: " +
      e.getLocalizedMessage();
      LOG.log(Level.INFO, msg, e);
      throw new ApplicationException(ApplicationException.Type.IMPORT_ERROR,
          msg, e);
          msg, t);
    }
  }