Tomcat plugin: wrong metadata for "Tomcat Virtual Host" component
Thomas Segismont
tsegismo at redhat.com
Tue Dec 3 17:08:18 UTC 2013
Hi,
While testing the "validator" mojo of the Maven plugin for agent plugins
that I'm working on, I found an issue with the Tomcat plugin.
It never came out on RHQ master builds because the validate-all module
is not configured to validate the Tomcat plugin ...
So here is the validator message:
===
Component class [org.jboss.on.plugins.tomcat.TomcatServerComponent] for
resource type [Tomcat Server] from plugin [Tomcat] does not support the
child creation facet but has metadata saying it can.
===
This is due to the "Tomcat Virtual Host" resource type having the
"createDeletePolicy='both'" attribute.
It was introduced by commit 417fbb5, which is included in RHQ4.7 and up.
It does not harm and if you try to create a "Tomcat Virtual Host" you'll
see an exception like:
===
org.rhq.core.clientapi.agent.PluginContainerException: Component does
not support the
[org.rhq.core.pluginapi.inventory.CreateChildResourceFacet] interface:
ResourceContainer[resource=Resource[id=10004,
uuid=78283a3a-f8d3-4a5b-9b92-e966a4bba150, type={Tomcat}Tomcat Server,
key=/home/tsegismont/Tools/apache-tomcat-7.0.37, name=Tomcat
(127.0.0.26:8080), parent=localhost.localdomain, version=7.0.37.0],
syncState=SYNCHRONIZED, componentState=STARTED, avail=UP]
===
I created a BZ:
Bug 1037736 - Tomcat plugin: wrong metadata for "Tomcat Virtual Host"
component
https://bugzilla.redhat.com/show_bug.cgi?id=1037736
Once it is fixed I will add the Tomcat plugin in the validate-all module.
Regards,
Thomas
More information about the rhq-devel
mailing list