JON server reports error 'no JVM available' when trying to use rhqctl as a System V init service
Issue
- Service errors out
-
Service start command fails with the following error:
There is no JVM available. Please set RHQ_JAVA_HOME or RHQ_JAVA_EXE_FILE_PATH appropriately. 11:24:58,268 ERROR [org.rhq.server.control.RHQControl] Process exited with an error: 1 (Exit value: 1)
-
There are
RHQ_JAVA_HOME not set
errors rhqctl
does not work as System V init script
Environment
- Red Hat JBoss Operations Network (ON) 3.2
- JBoss ON server has been configured as a System V init service using the instructions provided in Configuring the Server as a Service on Red Hat Enterprise Linux of the Installation Guide Revision 3.2-12
- Starting or stopping the JBoss ON server using
/etc/init.d/rhqctl
orservice rhqctl
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.