Bug 758919 - Tomcat 6 Not Inventoried Correctly
Summary: Tomcat 6 Not Inventoried Correctly
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.3
Hardware: Unspecified
OS: Unspecified
medium
unspecified vote
Target Milestone: ---
: JON 3.0.0
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-01 00:24 UTC by Stefan Negrea
Modified: 2012-02-07 19:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-07 19:19:46 UTC


Attachments (Terms of Use)
agent log (209.17 KB, application/octet-stream)
2011-12-15 16:27 UTC, Mike Foley
no flags Details

Description Stefan Negrea 2011-12-01 00:24:31 UTC
Description of problem:
The discovery process for Tomcat 6 fails and the resource is always down.

How reproducible:
Every time.

Steps to Reproduce:
1. Start a Tomcat 6 instance (used 6.0.32)
2. Attempt to inventory it.
3. Observe results
  
Actual results:
None of the server child resources are discovered and Tomcat 6 is always down. 

Expected results:
The inventory process works like Tomcat 5 and all the children (eg. webapps) are inventoried.

Additional info:
The following error message is displayed in the logs:
2011-11-30 17:56:15,146 INFO  [ResourceContainer.invoker.daemon-40] (org.mc4j.ems.connection.ConnectionFactory)- Connection library dependancy [catalina-cluster.jar] not found  in directory: /home/snegrea/Downloads/jboss-ews-1.0/tomcat6
2011-11-30 17:56:15,150 INFO  [ResourceContainer.invoker.daemon-40] (org.mc4j.ems.connection.ConnectionFactory)- Connection library dependancy [catalina-optional.jar] not found  in directory: /home/snegrea/Downloads/jboss-ews-1.0/tomcat6

Since those two libraries are Tomcat 5 specific most probably the Tomcat plugin confuses Tomcat 6 with Tomcat 5. I found no other error messages in the logs related to this failure.

The JMX settings have been set correctly in startup.sh prior to starting Tomcat 6.

Comment 1 Stefan Negrea 2011-12-01 14:47:51 UTC
I tested this with JON CR3 and only EWS plugin installed. The agent was started without the EWS plugin installed and used "plugins update" to get the tomcat plugin after server installation.

The reported error persisted until I restarted the agent. The discovery process worked correctly for Tomcat 6 after agent restart.

Comment 2 Mike Foley 2011-12-15 15:29:18 UTC
QE ... please verify that we can inventory Tomcat6 ...

Comment 3 Mike Foley 2011-12-15 16:27:01 UTC
was able to inventory both tomcat5 and tomcat6.  both installed, only tomcat6 running.  attaching agent log as evidence.

Comment 4 Mike Foley 2011-12-15 16:27:51 UTC
Created attachment 547338 [details]
agent log

Comment 5 Mike Foley 2012-02-07 19:19:46 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE


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