Bug 1037736 - Tomcat plugin: wrong metadata for "Tomcat Virtual Host" component
Summary: Tomcat plugin: wrong metadata for "Tomcat Virtual Host" component
Keywords:
Status: ASSIGNED
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium vote
Target Milestone: ---
: RHQ 4.13
Assignee: Jean-frederic Clere
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-03 17:07 UTC by Thomas Segismont
Modified: 2022-03-31 04:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Thomas Segismont 2013-12-03 17:07:21 UTC
Description of problem:
Tomcat plugin: wrong metadata for "Tomcat Virtual Host" component

Version-Release number of selected component (if applicable):
4.7 and up

How reproducible:
Always

Steps to Reproduce:
1. Inventory a Tomcat server
2. Click on "Create Child > Tomcat Virtual Host"

Actual results:
===
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]
===

Additional info:
The agent plugin validator shows this error 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.
===

Comment 1 Thomas Segismont 2013-12-03 17:11:44 UTC
Email sent to the devel list:
https://lists.fedorahosted.org/pipermail/rhq-devel/2013-December/003275.html

Comment 2 Thomas Segismont 2013-12-03 17:17:28 UTC
Rémy,

I'm assigning this BZ to you as you authored commit 417fbb5.

"Tomcat Virtual Host" resources should not be creatable or the TomcatServerComponent should implement CreateChildResourceFacet.

Thanks,
Thomas


Note You need to log in before you can comment on or make changes to this bug.