JBoss-CLI "deploy -l" always returns exit code 1 even when it succeeds

Solution Unverified - Updated -

Issue

CLI command deploy -l results always returns 1 even if it succeeded.

For example, it can be seen by following steps:

$ /JBOSS_HOME/bin/jboss-cli.sh -c --command="deploy -l"
NAME             RUNTIME-NAME     ENABLED STATUS
testapp.war testapp.war true    OK
$ echo $?
1

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content