Fix Resident IDP UI issue
String DEFAULT = "DEFAULT";
String cookie = (String) session.getAttribute(ServerConstants.ADMIN_SERVICE_COOKIE);
String backendServerURL = CarbonUIUtil.getServerURL(config.getServletContext(), session);
+ final String governanceAdminServiceClass = "org.wso2.carbon.identity.governance.IdentityGovernanceAdminService";
ConfigurationContext configContext = (ConfigurationContext) config.getServletContext()
.getAttribute(CarbonConstants.CONFIGURATION_CONTEXT);
IdentityGovernanceAdminClient client = new IdentityGovernanceAdminClient(cookie, backendServerURL, configContext);
- Map<String, Map<String, List<ConnectorConfig>>> catMap = client.getConnectorList();
+ Map<String, Map<String, List<ConnectorConfig>>> catMap = new HashMap<String, Map<String, List<ConnectorConfig>>>();
+ try {
+ Class.forName(governanceAdminServiceClass);
+ catMap = client.getConnectorList();
+ } catch (ClassNotFoundException e) {
+ // Fix APIMANAGER-5713 - issue due to removing jars of admin service
+ // Intentionally skipping handling the exception for class not found for admin service.
+ }
+
%>
