From 5c8a24724c666e4d6dbfaa745e4926be6fd4e1d1 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Tue, 13 Oct 2015 09:29:42 +0000 Subject: [PATCH] Removed listener from web.xml git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor@119655 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../executor/SmartContextServletListener.java | 44 ------------------- src/main/webapp/WEB-INF/web.xml | 22 +++------- 2 files changed, 6 insertions(+), 60 deletions(-) delete mode 100644 src/main/java/org/gcube/vremanagement/executor/SmartContextServletListener.java diff --git a/src/main/java/org/gcube/vremanagement/executor/SmartContextServletListener.java b/src/main/java/org/gcube/vremanagement/executor/SmartContextServletListener.java deleted file mode 100644 index 7b78dec..0000000 --- a/src/main/java/org/gcube/vremanagement/executor/SmartContextServletListener.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * - */ -package org.gcube.vremanagement.executor; - -import java.util.List; - -import javax.servlet.ServletContextEvent; -import javax.servlet.ServletContextListener; - -import org.gcube.smartgears.ContextProvider; -import org.gcube.smartgears.context.application.ApplicationContext; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -/** - * @author Luca Frosini (ISTI - CNR) http://www.lucafrosini.com/ - */ -public class SmartContextServletListener implements ServletContextListener { - - /** - * Logger - */ - private static Logger logger = LoggerFactory.getLogger(SmartContextServletListener.class); - - /**{@inheritDoc}*/ - @Override - public void contextDestroyed(ServletContextEvent servletContextEvent) { - logger.debug("Bye Bye SmartExecutor"); - } - - /**{@inheritDoc}*/ - @Override - public void contextInitialized(ServletContextEvent servletContextEvent) { - logger.debug("Hello SmartExecutor"); - ApplicationContext ctx = ContextProvider.get(); - logger.debug(String.format("ApplicationContext %s", ctx)); - if(ctx!=null){ - List scopes = SmartExecutorInitializator.getScopes(ctx); - logger.debug(String.format("Scopes %s", scopes)); - } - } - -} diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 762c48a..8a0d371 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -1,19 +1,9 @@ - - - - org.gcube.smartgears.ContextListener - - - com.sun.xml.ws.transport.http.servlet.WSServletContextListener - - - org.gcube.vremanagement.executor.SmartContextServletListener - - + + smart-executor com.sun.xml.ws.transport.http.servlet.WSServlet @@ -23,4 +13,4 @@ /gcube/vremanagement/smart-executor - \ No newline at end of file +