Bug 1022989

Summary: Unable to start JON/RHQ agent on windows due error in rhq_agent.bat
Product: [JBoss] JBoss Operations Network Reporter: Radim Hatlapatka <rhatlapa>
Component: AgentAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: hrupp
Target Milestone: ER05   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-02 20:37:05 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:
Bug Depends On:    
Bug Blocks: 1012435    

Description Radim Hatlapatka 2013-10-24 12:15:54 UTC
Description of problem:
in the command [1] it should start with path java.exe => RHQ_JAVA_EXE_FILE_PATH and not RHQ_AGENT_EXE_FILE_PATH which is undefined.

[1]
set CMD="%RHQ_AGENT_EXE_FILE_PATH%" %_JAVA_ENDORSED_DIRS_OPT% %_JAVA_LIBRARY_PATH_OPT% %RHQ_AGENT_JAVA_OPTS% %RHQ_AGENT_ADDITIONAL_JAVA_OPTS% %_LOG_CONFIG% -cp "%CLASSPATH%" %RHQ_AGENT_MAINCLASS% %RHQ_AGENT_CMDLINE_OPTS%



Version-Release number of selected component (if applicable):
JON 3.2.0.ER4

How reproducible: always


Steps to Reproduce:
1. try to start rhq-agent using rhq-agent.bat


Actual results: error, that '""' is not recognized as an internal or external command


Expected results:
started rhq-agent

Additional info:

Comment 1 Jay Shaughnessy 2013-10-28 14:02:39 UTC
master commit 9d0306553f32bb0ce5c51ebb31ffb962abfca2c3
Author: Jay Shaughnessy <jshaughn>
Date:   Mon Oct 28 10:01:09 2013 -0400

    Fix agent bat script and similar issue in cli bat script

Comment 2 Jay Shaughnessy 2013-10-28 14:05:23 UTC
release/jon3.2.x commit 583e8cd1f9bc75211e2d5a339e34a2a02d7b49cc
Author: Jay Shaughnessy <jshaughn>
Date:   Mon Oct 28 10:03:58 2013 -0400

    Fix agent bat script and similar issue in cli bat script

    Cherry-pick master: 93cbc9c4426363db4d63b4270ba49ba20f7ebe16

Comment 3 Simeon Pinder 2013-11-07 02:18:30 UTC
Moving to ON_QA for test with new brew build.

Comment 4 Radim Hatlapatka 2013-11-07 09:36:57 UTC
Verified with JON 3.2.0.ER5