I've never seen that before..
Did you upload your plugin to the server first and deploy it there and then download into the agent via
The error message looks to me like the server does no know about this plugin and the HortneQ resource
If you did follow the above steps: did you rename the resource type from some previous version?
If so, please wipe the database.
I uploaded the plugin and updated the plugin. I get this when i try to manually add. I am not sure what you mean by resource type, is this the name, my config for the server is:
description="Supports management and monitoring of HornetQ Servers"
I have cleaned the database and reinstalled everything, Now i get the following:
An unexpected error occurred in the Agent. Cause: org.rhq.core.clientapi.agent.PluginContainerException:The [HornetQ] plugin does not support manual addition of [HornetQ Server] resources.
even tho ManualAdd is set to true
ResourceType is encoded e.g. in <server name=HornetQ"> - this defines a resource type of "HornetQ" with ResourceCategory of "Server".
When using manualAdd, you also need the matching code in the DiscoveryClass -- see e.g.
Can you post more of the source - or link us to some repo, so we can have a look at it in order to help you?
I have implemented the manualAddFacet interface but still get the same error. you can see all the code at http://anonsvn.jboss.org/repos/jbossas/branches/Branch_Hornet_Temporary_2/hornetq-int. This is a branch to integrate HornetQ with the AS altho we may pull the jopr code into the HornetQ trunk depending.
actually i didnt realise that all the discovery components have to implement this not just the top level one. anyway, now i an getting:
An unexpected error occurred in the Agent. Cause: java.lang.NoClassDefFoundError:org/rhq/core/pluginapi/inventory/ManualAddFacet -> java.lang.ClassNotFoundException:org.rhq.core.pluginapi.inventory.ManualAddFacet
I am using jopr server 2.3.1
ManualAddFacet is unfortunately only available in RHQ 1.4.0.B01 and the RHQ 3.0.0.B* builds.
The other article that is linked from the one I've linked above shows how to implement this in Jopr 2.3.1 and earlier.
Should have mentioned this ...
Andy - if you want - hop on #rhq on freenode - we can discuss in realtime to help you get over the hump here. It sounds like you had it correct before, but you just didn't have the plugins updated properly on both the server and agent. Should not be difficult to get that working, just a matter of making sure the plugins are updated on the agent after successfully deploying inside the server.