From 986733aa01992e78f973cddbd18f3d02bb62f60e Mon Sep 17 00:00:00 2001
From: Gaetan Boismal <gaetan.boismal@forgerock.com>
Date: Fri, 22 May 2015 12:52:57 +0000
Subject: [PATCH] OPENDJ-2017 (CR-7035) Setup GUI: Fix replication setup

---
 opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java
index 567e8bc..e66cf6f 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/util/Utilities.java
@@ -123,6 +123,7 @@
 import org.opends.quicksetup.Installation;
 import org.opends.quicksetup.ui.UIFactory;
 import org.opends.quicksetup.util.Utils;
+import org.opends.server.admin.ClassLoaderProvider;
 import org.opends.server.api.AttributeSyntax;
 import org.opends.server.api.ConfigHandler;
 import org.opends.server.config.ConfigEntry;
@@ -2934,4 +2935,24 @@
     }
   }
 
+  /** Initialize the legacy configuration framework. */
+  public static void initializeLegacyConfigurationFramework()
+  {
+    try
+    {
+      final ClassLoaderProvider provider = ClassLoaderProvider.getInstance();
+      if (!provider.isEnabled())
+      {
+        provider.enable();
+      }
+    }
+    catch (Exception e)
+    {
+      final LocalizableMessage message = ERROR_CTRL_PANEL_INITIALIZE_CONFIG_OFFLINE.get(e.getLocalizedMessage());
+      logger.error(message);
+      throw new RuntimeException(message.toString(), e);
+    }
+
+  }
+
 }

--
Gitblit v1.10.0