Setting RHQ_JAVA_HOME or RHQ_JAVA_EXE_FILE_PATH or JAVA_HOME in JON rhqctl script is ignored
Issue
-
I got following error:
# ./rhqctl install INFO [org.jboss.modules] JBoss Modules version 1.2.2.Final-redhat-1 INFO [org.rhq.server.control.command.Install] Preparing to install RHQ storage node. There is no JVM available. Please set RHQ_JAVA_HOME or RHQ_JAVA_EXE_FILE_PATH appropriately. ERROR [org.rhq.server.control.command.Install] An error occurred while running the storage installer: Process exited with an error: 1 (Exit value: 1) ERROR [org.rhq.server.control.RHQControl] Process exited with an error: 1 (Exit value: 1) WARN [org.rhq.server.control.command.Install] UNDO: Removing storage node data and install directories WARN [org.rhq.server.control.command.Install] UNDO: Reverting server properties file -
Set the 'RHQ_JAVA_HOME' in the
rhqctl.shas follow:RHQ_JAVA_HOME=/usr/lib/jvm/jre-1.6.0-sun.x86_64
Environment
- Red Hat JBoss Operations Network (ON) 3.2.0
- Modified
rhqctlscript to define an environment variableRHQ_JAVA_HOME,RHQ_JAVA_EXE_FILE_PATHorJAVA_HOME - Executing
rhqctlto install or start a JBoss ON component
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.