JBoss AS resource's start operation returns 'failure' in JBoss ON UI when start script executes successfully and returns exit code 0

Solution Verified - Updated -

Issue

  • I got this error when starting the restart operation:

    java.lang.Exception: Start failed with error code 0:
    ...
        at org.rhq.core.pc.operation.OperationInvocation.run(OperationInvocation.java:278)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
    
  • Start operation for JBoss application server resource returns failure in UI

  • What is the expected output of the script should be so that JON recognize it started successfully ?
  • JBoss instance is correctly started but we get failure on the "operations" tab of the JON. The script returns a "0" as return code, but still the JON consider it as a faliure.

Environment

  • Red Hat JBoss Operations Network (ON) 3.1.0, 3.1.1, 3.1.2
  • JBoss AS7 plug-in for JBoss ON
  • Invocation of JBoss application server's start operation
  • JBoss application server's Start Script Path references a start script that will return immediately with exit code 0 upon success

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.