Your MBean(s) are not deployed to the server using an HQ plugin, so
there is no need to package them in a plugin jar. You should have
your MBean deployed and tested using a JMX console of your choice
before attempting to implement an HQ plugin to manage the MBean.
Once your MBeans are deployed, you would use the logger-plugin.xml as-
is without .jar packaging.
On Aug 14, 2006, at 3:03 AM, Devi Anantharaman wrote:
> Doug,
>
> I packaged my LoggerMBean class files and the xml file that you
> provided in a jar,logger-plugin.jar
>
> The package structure of the jar is as shown:
> logger-plugin/jmxbook/ch4/*.class
> logger-plugin/etc/logger-plugin.xml
> i.e; class files with the package structure and the xml file inside
> etc folder comes under logger-plugin
>
> I copied the jar to the location D:\Program Files\agent-2.7.0\pdk
> \plugins and D:\Program Files\server-2.7.0\hq-engine\server
> \default\deploy\hq.ear\hq-plugins corresponding to agent and
> server. Then, I started the server and then the agent. The server
> started properly, but the agent console showed the following error.
>
> Agent startup error: Unable to initialize plugin manager: failed
> to configure plugin jar=D:\Program Files\agent-2.7.0\.\pdk\plugins
> \logger-plugin.jar
>
> Can you send me a simple example, where you have the MBeans, the
> jar and xml along with details about putting the jar at the right
> location and observing the output thru' Hyperic.
>
> Many Thanks,
> Dolby