JBoss ON Agent is not starting and "There is no JVM available. Please set RHQ_JAVA_HOME or RHQ_JAVA_EXE_FILE_PATH appropriately." message is thrown

Solution Unverified - Updated -

Issue

  • The JBoss ON server starts fine but the JBoss ON Agent does not start and reports the following error:
ERROR [org.rhq.server.control.RHQControl] Process exited with an error: 1 (Exit value: 1)
  • Trying to start JBoss ON Agent but it fails and agent logs are not generated;
  • I am trying to start JBoss ON Agent but I am getting the following error:
[root@mySystem]# ./rhq-agent.sh --fullcleanconfig
There is no JVM available.
Please set RHQ_JAVA_HOME or RHQ_JAVA_EXE_FILE_PATH appropriately.

[root@mySystem]# set RHQ_JAVA_HOME=/usr/java/jdk1.7.0_25/

[root@mySystem]# ./rhq-agent.sh --fullcleanconfig
There is no JVM available.
Please set RHQ_JAVA_HOME or RHQ_JAVA_EXE_FILE_PATH appropriately.

Environment

  • Red Hat JBoss Operations Network (JON) 3.2.0
  • Use set command to configure RHQ_JAVA_HOME variable;

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.