mapperListener.registerWrapper=Register Wrapper {0} in Context {1}
mapperListener.addMBeanListenerFail=Failed to add MBean notification listener for connector [{0}] in domain [{1}]. Adding Hosts, Contexts and Wrappers will not be visible to the connector.
mapperListener.removeMBeanListenerFail=Failed to remove MBean notification listener for connector [{0}] in domain [{1}]. This may result in a memory leak.
-mapperLister.lifecycleListenerFail=Failed to call method [{0}] on object [{1}]. Changes in the object state may not be correctly reflected in the mapper for connector [{2}] in domain [{3}].
+mapperLister.lifecycleListenerFail=Failed to add Lifecycle listener to object [{0}]. Changes in the object state may not be correctly reflected in the mapper for connector [{1}] in domain [{2}].
inputBuffer.streamClosed=Stream closed
return;
}
- String methodName = null;
- if (notification.getType().equals
+ if (!notification.getType().equals
(MBeanServerNotification.REGISTRATION_NOTIFICATION)) {
- methodName = "addLifecycleListener";
- } else if (notification.getType().equals
- (MBeanServerNotification.UNREGISTRATION_NOTIFICATION)) {
- methodName = "removeLifecycleListener";
- } else {
return;
}
if ("Servlet".equals(type) || "WebModule".equals(type) ||
"Host".equals(type)) {
try {
- mBeanServer.invoke(objectName, methodName,
+ mBeanServer.invoke(objectName, "addLifecycleListener",
new Object[] {this},
new String[] {"org.apache.catalina.LifecycleListener"});
} catch (ReflectionException e) {
log.error(sm.getString(
- "mapperLister.lifecycleListenerFail", methodName,
- objectName, connector, domain), e);
+ "mapperLister.lifecycleListenerFail", objectName,
+ connector, domain), e);
} catch (MBeanException e) {
log.error(sm.getString(
- "mapperLister.lifecycleListenerFail", methodName,
- objectName, connector, domain), e);
+ "mapperLister.lifecycleListenerFail", objectName,
+ connector, domain), e);
} catch (InstanceNotFoundException e) {
log.error(sm.getString(
- "mapperLister.lifecycleListenerFail", methodName,
- objectName, connector, domain), e);
+ "mapperLister.lifecycleListenerFail", objectName,
+ connector, domain), e);
}
}
}