geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r568232 - /geronimo/sandbox/tuscany-integration/modules/tuscany-http-geronimo/src/main/java/org/apache/tuscany/sca/http/geronimo/GeronimoServletHost.java
Date Tue, 21 Aug 2007 19:00:05 GMT
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");        



Mime
View raw message