// Check to correct engine and host setup
Object parent = getCluster().getContainer();
Engine engine = null;
+ String hostname = null;
if ( parent instanceof Host ) {
host = (Host) parent;
engine = (Engine) host.getParent();
+ hostname = host.getName();
}else {
engine = (Engine)parent;
+ hostname = engine.getDefaultHost();
}
try {
oname = new ObjectName(engine.getName() + ":type=Deployer,host="
- + host.getName());
+ + hostname);
} catch (Exception e) {
log.error("Can't construct MBean object name" + e);
}
--- /dev/null
+<?xml version="1.0"?>\r
+<mbeans-descriptors>\r
+ <mbean \r
+ name="FarmWarDeployer"\r
+ className="org.apache.catalina.mbeans.ClassNameMBean"\r
+ description="Farm Deployer - Broken"\r
+ domain="Catalina"\r
+ group="Cluster"\r
+ type="org.apache.catalina.ha.deploy.FarmWarDeployer">\r
+ </mbean>\r
+</mbeans-descriptors>\r