patch apply command not working as expected in non-interactive mode in EAP 6

Solution Unverified - Updated -

Issue

In non-interactive mode we cant apply a patch to slave host via the domain controller:

[user@domain ~]$ $JBOSS_HOME/bin/jboss-cli.sh --user=xxxx --password=xxx --command="patch apply --host=slave /var/tmp/jboss- 
eap-6.2.4-patch.zip"                                                     
patching exception             

but it works interactively:

[domain@localhost:9999 /] patch apply --host=salve  /var/tmp/jboss-eap-6.2.4-patch.zip                                       
{                                                                        
    "outcome" : "success",                                               
   . . .
  • Why does it not work non-interactive mode ?

Environment

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

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.