From c33f402fd13e5176c72c25875a9655229a845d57 Mon Sep 17 00:00:00 2001 From: rajitha Date: Tue, 18 Apr 2023 15:34:07 +0530 Subject: [PATCH] Fix bundling issues --- components/tenant-mgt/io.entgra.tenant.mgt.core/pom.xml | 4 ++++ .../tenant/mgt/core/internal/TenantMgtServiceComponent.java | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/tenant-mgt/io.entgra.tenant.mgt.core/pom.xml b/components/tenant-mgt/io.entgra.tenant.mgt.core/pom.xml index 76284fea49..5ec9904eb3 100644 --- a/components/tenant-mgt/io.entgra.tenant.mgt.core/pom.xml +++ b/components/tenant-mgt/io.entgra.tenant.mgt.core/pom.xml @@ -46,7 +46,11 @@ org.wso2.carbon.stratos.common.exception, org.wso2.carbon.stratos.common.listeners, org.wso2.carbon.device.mgt.common.metadata.mgt, + org.wso2.carbon.device.mgt.common.exceptions, + org.wso2.carbon.device.mgt.common.permission.mgt, + org.wso2.carbon.device.mgt.common.roles.config, org.wso2.carbon.device.mgt.core.metadata.mgt, + org.wso2.carbon.device.mgt.core.config, org.wso2.carbon.user.core.service, org.wso2.carbon.context diff --git a/components/tenant-mgt/io.entgra.tenant.mgt.core/src/main/java/io/entgra/tenant/mgt/core/internal/TenantMgtServiceComponent.java b/components/tenant-mgt/io.entgra.tenant.mgt.core/src/main/java/io/entgra/tenant/mgt/core/internal/TenantMgtServiceComponent.java index ac2b0be69b..534c50c59d 100644 --- a/components/tenant-mgt/io.entgra.tenant.mgt.core/src/main/java/io/entgra/tenant/mgt/core/internal/TenantMgtServiceComponent.java +++ b/components/tenant-mgt/io.entgra.tenant.mgt.core/src/main/java/io/entgra/tenant/mgt/core/internal/TenantMgtServiceComponent.java @@ -9,6 +9,7 @@ import org.apache.commons.logging.LogFactory; import org.osgi.service.component.ComponentContext; import org.wso2.carbon.device.mgt.common.metadata.mgt.WhiteLabelManagementService; import org.wso2.carbon.device.mgt.core.metadata.mgt.WhiteLabelManagementServiceImpl; +import org.wso2.carbon.stratos.common.listeners.TenantMgtListener; import org.wso2.carbon.user.core.service.RealmService; /** @@ -27,6 +28,7 @@ import org.wso2.carbon.user.core.service.RealmService; * unbind="unsetRealmService" */ +@SuppressWarnings("unused") public class TenantMgtServiceComponent { private static final Log log = LogFactory.getLog(TenantManagerService.class); @@ -43,7 +45,7 @@ public class TenantMgtServiceComponent { TenantMgtDataHolder.getInstance().setWhiteLabelManagementService(whiteLabelManagementService); DeviceMgtTenantListener deviceMgtTenantListener = new DeviceMgtTenantListener(); componentContext.getBundleContext(). - registerService(DeviceMgtTenantListener.class.getName(), deviceMgtTenantListener, null); + registerService(TenantMgtListener.class.getName(), deviceMgtTenantListener, null); log.info("Tenant management service activated"); } catch (Throwable t) { String msg = "Error occurred while activating tenant management service";