Instructions for running JBoss ON rhqctl services as System V style init service do not work

Solution Verified - Updated -

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
  • How to run rhqctl as a service
  • Service setup steps are broken
  • I get following error:

    /etc/init.d/rhqctl: line 140: cd: /etc/rc.d/jbossas: No such file or directory
    ERROR! RHQ_SERVER_JBOSS_HOME is not pointing to a valid AS instance
    Missing /etc/rc.d/jboss-modules.jar
    
  • How should JON 3.2 be installed to run as a service in RHEL5/6/7?
  • How to configure and run JBoss ON (JON) 3.2.0 Server as a Service in Red Hat Enterprise Linux platform?
  • What is the recommended way to run JON as a CentOS Service?

Environment

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.