You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by va...@apache.org on 2007/08/21 21:00:05 UTC

svn commit: r568232 - /geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java

Author: vamsic007
Date: Tue Aug 21 12:00:04 2007
New Revision: 568232

URL: http://svn.apache.org/viewvc?rev=568232&view=rev
Log:
Stop the context before removing.

Modified:
    geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java

Modified: geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java
URL: http://svn.apache.org/viewvc/geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java?rev=568232&r1=568231&r2=568232&view=diff
==============================================================================
--- geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java (original)
+++ geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java Tue Aug 21 12:00:04 2007
@@ -202,6 +202,11 @@
         //when to remove the context? Assuming when it has 2 children only i.e. JSP Servlet and DefaultServlet
         //and it is not the default context
         if(context.findChildren().length < 3 && !context.getName().equals("")){
+            try{        
+                ((StandardContext)context).stop();
+            }catch(LifecycleException lfe){
+                log.fatal("The context named " + context.getName() + " failed to stop",lfe);
+            }
             host.removeChild(context);
         }
         log.debug("End of removeServletMapping() method");