Bug 819116

Summary: Attach API only works with RHQ_AGENT_JAVA_HOME
Product: [JBoss] JBoss Operations Network Reporter: Viet Nguyen <vnguyen>
Component: AgentAssignee: Thomas Segismont <tsegismo>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JON 3.1.0CC: tsegismo
Target Milestone: ER01   
Target Release: JON 3.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:43:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Viet Nguyen 2012-05-04 22:05:39 UTC
Description of problem:

When RHQ_AGENT_JAVA_EXE_FILE_PATH is specified instead of RHQ_AGENT_JAVA_HOME tools.jar will not be added to classpath in rhq-agent.sh

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

3.1.0.GA

How reproducible:

100%

Steps to Reproduce: 
1. set RHQ_AGENT_JAVA_EXE_FILE_PATH=path to jdk6 java executable
2. run rhq-agent.sh

  
Actual results: (agent.log)

JDK tools.jar not found on system classpath - cannot discover JVMs using Sun JVM Attach API; to fix this, run the RHQ Agent on a JDK, rather than a JRE.


Expected results:

launch script should figure out tools.jar from java exec path or don't give user the option

Additional info:

Comment 1 Mike Foley 2012-05-08 19:33:45 UTC
per BZ triage ... crouch, loleary, foley

Comment 2 Thomas Segismont 2013-06-25 13:47:57 UTC
Fixed in master

commit e0ff57671c03264969d0870a6ba67efb41f8f218
Author: Thomas Segismont <tsegismo>
Date:   Mon Jun 24 17:44:33 2013 +0200

Comment 3 Larry O'Leary 2013-09-06 14:31:41 UTC
As this is MODIFIED or ON_QA, setting milestone to ER1.