From ffee269a0ed27cd09d09d08ecec48d26c2fe80c0 Mon Sep 17 00:00:00 2001 From: lakshani Date: Mon, 20 Feb 2017 14:01:56 +0530 Subject: [PATCH] Fixed the issue in server startup- removed error logs --- .../mdm/restconnector/internal/MDMComponent.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/components/extensions/appm-connector/org.wso2.carbon.appmgt.mdm.restconnector/src/main/java/org/wso2/carbon/appmgt/mdm/restconnector/internal/MDMComponent.java b/components/extensions/appm-connector/org.wso2.carbon.appmgt.mdm.restconnector/src/main/java/org/wso2/carbon/appmgt/mdm/restconnector/internal/MDMComponent.java index c75ed0981b..e1830d425f 100644 --- a/components/extensions/appm-connector/org.wso2.carbon.appmgt.mdm.restconnector/src/main/java/org/wso2/carbon/appmgt/mdm/restconnector/internal/MDMComponent.java +++ b/components/extensions/appm-connector/org.wso2.carbon.appmgt.mdm.restconnector/src/main/java/org/wso2/carbon/appmgt/mdm/restconnector/internal/MDMComponent.java @@ -37,15 +37,10 @@ public class MDMComponent { protected void activate(ComponentContext context) { BundleContext bundleContext = context.getBundleContext(); + mdmServiceRegistration = bundleContext.registerService(ApplicationOperations.class.getName(), new + ApplicationOperationsImpl(), null); if (log.isDebugEnabled()) { - log.debug("WSO2MDM MDM Component activated"); - } - try { - mdmServiceRegistration = bundleContext.registerService(ApplicationOperations.class.getName(), new - ApplicationOperationsImpl(), null); - } catch (Throwable e) { - log.error("Failed to activate org.wso2.carbon.appmgt.mdm.restconnector.internal." + - "MDMComponent : " + e); + log.debug("WSO2MDM MDM Component activated."); } }