--- src/main/java/org/apache/log4j/jmx/Agent.java 2009-11-16 02:01:20.000000000 +0100 +++ src/main/java/org/apache/log4j/jmx/Agent.java-gil 2009-11-16 02:01:11.000000000 +0100 @@ -20,7 +20,7 @@ import javax.management.ObjectName; import javax.management.MBeanServer; import javax.management.MBeanServerFactory; -import com.sun.jdmk.comm.HtmlAdaptorServer; +import mx4j.tools.adaptor.http.HttpAdaptor; import org.apache.log4j.Logger; @@ -47,7 +47,13 @@ server.registerMBean(hdm, new ObjectName("log4j:hiearchy=default")); } catch(Exception e) { - log.error("Problem while regitering MBeans instances.", e); + log.error("Problem while registering MBeans instances.", e); + return; + } + try { + html.start(); + } catch(java.io.IOException ioe) { + log.error("Problem while starting HtmlAdaptorServer (HttpAdaptor).", ioe); return; } html.start();