I have attached an initial patch pulling in JMXProxyServlet.java from Tomcat 7.0.14.
I pulled over two classes and part of a third.
org.apache.tomcat.util.ExceptionUtils - only the package name changed.
org.apache.tomcat.util.modeler.Registry - two methods from this class were moved into JMXProxyServlet getType and convertValue and modified to use mBeanServer from JMXProxyServlet instead of the MBeanServer from Registry
org.apache.catalina.manager.JMXProxyServlet - pacakge name changed. Registry was removed and replaced with a direct call to get MBeanServer, and two private methods.
There are no tests and no documentation changes right now (Which is why I marked it alpha). I wanted feedback on it first.
1) is the package OK org.apache.hadoop.jmx?
2) is the URL OK /jmx?
3) where would be an appropriate place to document this?
4) is this even the right thing to do? I am not sure how standard the format is. I need to dig into it a bit more to really understand it, because all I have done is a simple port.