Yes: The mbeans-descriptors.xml file needs to be jarred up in a package
that corresponds to the path in your server.xml.  The reference in the
server.xml file is a getResource() parameter, not a file path per se.

Benjamin J. Armintor
Systems Analyst
ITS-Systems: Mainframe Group
University of Texas - Austin
tele: (512) 232-6562
email: [EMAIL PROTECTED]
 


-----Original Message-----
From: Chad Boyd [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 31, 2004 4:14 PM
To: [EMAIL PROTECTED]
Subject: Custom MBeans in Tomcat 5


Has anyone had any luck deploying one of their own MBeans in Tomcat?
I've got a Dynamic MBean I'm trying to deploy and I've had no luck. I've
tried both methods listed at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/mbeans-descriptor-howto.
html.  Neither one seemed to work.  I've got my mbean jar in the
commons/lib directory, my mbeans-descriptors.xml file in the
commons/classes directory, and changed server.xml to point to this file.
How can I determine if this MBean has been deployed.  I tried going to
the jmxproxy page in the manager app but didn't see it loaded there.
When I try to look it up in my code I get an InstanceNotFoundException.
Could someone please help me?  I can supply my entry in the
mbeans-descriptors.xml file if needed.  
 
Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to