diff options
author | Michael Lando <ml636r@att.com> | 2017-11-15 09:24:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-11-15 09:24:55 +0000 |
commit | 4cd214f4d467dcbfb82febbac0d4debd0a42b7ac (patch) | |
tree | a8df6c1a56a5f618874d88c983e1ec065f17b46f /common/openecomp-common-configuration-management | |
parent | 4ee784d570429ce63f69fa6e6bfe99cef9b5a718 (diff) | |
parent | a8452edfd26007b82389b5ec8d136c75d909bfa3 (diff) |
Merge "Error in Jetty logs" into release-1.1.0
Diffstat (limited to 'common/openecomp-common-configuration-management')
-rw-r--r-- | common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java index a355073116..06652c0843 100644 --- a/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java +++ b/common/openecomp-common-configuration-management/openecomp-configuration-management-core/src/main/java/org/openecomp/config/impl/ContextListener.java @@ -2,18 +2,12 @@ package org.openecomp.config.impl; import static org.openecomp.config.Constants.MBEAN_NAME; -import org.apache.commons.beanutils.FluentPropertyBeanIntrospector; -import org.openecomp.config.api.ConfigurationManager; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.lang.management.ManagementFactory; -import java.lang.reflect.Field; -import java.lang.reflect.Method; import javax.management.ObjectName; import javax.servlet.ServletContextEvent; import javax.servlet.ServletContextListener; import javax.servlet.annotation.WebListener; +import org.openecomp.config.api.ConfigurationManager; @WebListener public class ContextListener implements ServletContextListener { @@ -29,20 +23,6 @@ public class ContextListener implements ServletContextListener { @Override public void contextInitialized(ServletContextEvent arg0) { - try { - ConfigurationManager.lookup(); - Logger logger = LoggerFactory.getLogger(FluentPropertyBeanIntrospector.class); - Method method = logger.getClass().getDeclaredMethod("getLevel"); - method.setAccessible(true); - Object object = method.invoke(logger); - method = logger.getClass().getDeclaredMethod("setLevel", object.getClass()); - method.setAccessible(true); - Field field = object.getClass().getDeclaredField("ERROR"); - field.setAccessible(true); - method.invoke(logger, field.get(logger)); - } catch (Exception exception) { - exception.printStackTrace(); - } + ConfigurationManager.lookup(); } - } |