welcomeFiles = results;
}
postWelcomeFiles();
- fireContainerEvent(ADD_WELCOME_FILE_EVENT, name);
-
+ if(this.getState().equals(LifecycleState.STARTED))
+ fireContainerEvent(ADD_WELCOME_FILE_EVENT, name);
}
// Inform interested listeners
postWelcomeFiles();
- fireContainerEvent(REMOVE_WELCOME_FILE_EVENT, name);
+ if(this.getState().equals(LifecycleState.STARTED))
+ fireContainerEvent(REMOVE_WELCOME_FILE_EVENT, name);
}
import org.apache.catalina.InstanceEvent;
import org.apache.catalina.InstanceListener;
import org.apache.catalina.LifecycleException;
+import org.apache.catalina.LifecycleState;
import org.apache.catalina.Wrapper;
import org.apache.catalina.mbeans.MBeanUtils;
import org.apache.catalina.security.SecurityUtil;
synchronized (mappings) {
mappings.add(mapping);
}
- fireContainerEvent(ADD_MAPPING_EVENT, mapping);
+ if(parent.getState().equals(LifecycleState.STARTED))
+ fireContainerEvent(ADD_MAPPING_EVENT, mapping);
}
synchronized (mappings) {
mappings.remove(mapping);
}
- fireContainerEvent(REMOVE_MAPPING_EVENT, mapping);
+ if(parent.getState().equals(LifecycleState.STARTED))
+ fireContainerEvent(REMOVE_MAPPING_EVENT, mapping);
}
ensure that <code>Context</code> objects are only destroyed once.
(markt)
</fix>
+ <fix>
+ <bug>50169</bug>: Ensure that when a Container is started that it
+ doesn't try and register with the mapper unless its parent has
+ already started. Patch provided by Eiji Takahashi. (markt)
+ </fix>
<add>
<bug>50222</bug>: Modify memory leak prevention code so it pins the
system class loader in memory rather than than the common class loader,