Bug 819116 - Attach API only works with RHQ_AGENT_JAVA_HOME
Summary: Attach API only works with RHQ_AGENT_JAVA_HOME
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Agent
Version: JON 3.1.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ER01
: JON 3.2.0
Assignee: Thomas Segismont
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-04 22:05 UTC by Viet Nguyen
Modified: 2014-01-02 20:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-02 20:43:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 799532 0 high CLOSED JMX plugin discovery causes Java processes to output stack traces 2021-02-22 00:41:40 UTC

Internal Links: 799532

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.


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