Once you have deployed BeanSpy to a web application server, the next step is to see that it works.  While look at the /Stats or /Stats/Info is a nice cross-platform solution, sometimes you want to know what is running on your specific application server.

For the various versions of Apache Tomcat (versions 5.5, 6, and 7), the command to do so looks like this:


Note: adjust hostname and port respectively

Presumably, you should see XML: a lot of XML (see the attached XML file of a valid query).  If the XML is empty, then a potential problem is that BeanSpy not having access to the appropriate MBean server (see here for details).