Hi,

this minor change fixes a bug : when an appllication is undeployed 
(removed), ContainerEvent with the value of REMOVE_EVENT are fired.

The bug is also in jakarta-tomcat-4. Should I send another patch?

Thanks,

-- Jeanfrancois

Index: StandardHostDeployer.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/core/StandardHostDeployer.java,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 StandardHostDeployer.java
--- StandardHostDeployer.java   18 Jul 2002 16:48:05 -0000      1.1.1.1
+++ StandardHostDeployer.java   1 Aug 2002 00:58:15 -0000
@@ -418,7 +418,8 @@
         host.log(sm.getString("standardHost.removing", contextPath));
         try {
             host.removeChild(context);
-        } catch (Exception e) {
+            host.fireContainerEvent(REMOVE_EVENT, context);
+       } catch (Exception e) {
             host.log(sm.getString("standardHost.removeError", contextPath), e);
             throw new IOException(e.toString());
         }

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to