Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
log4j-mini
log4j-jmx-Agent.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File log4j-jmx-Agent.patch of Package log4j-mini
Index: src/main/java/org/apache/log4j/jmx/Agent.java =================================================================== --- src/main/java/org/apache/log4j/jmx/Agent.java.orig 2009-12-10 12:10:46.918388360 +0100 +++ src/main/java/org/apache/log4j/jmx/Agent.java 2009-12-10 12:11:14.701264560 +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; @@ -37,7 +37,7 @@ void start() { MBeanServer server = MBeanServerFactory.createMBeanServer(); - HtmlAdaptorServer html = new HtmlAdaptorServer(); + HttpAdaptor html = new HttpAdaptor(8082); try { log.info("Registering HtmlAdaptorServer instance."); @@ -47,9 +47,14 @@ 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(); } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor