CLI Command - Error handling command: deploy
Hi everyone,
I am trying to use Jython Script to deploy '*.ear' file on JBOSS EAP 6 Cluster running in Domain Mode.
This Jython Script uses CLI class to connect with remote EAP Domain Controller and also for the deployment.
Following is the CLI method that I am using to deploy the ear file.
deploy ...\target\XyzEAR.ear --server-groups=abc-df-efg
For some reason, this file argument throws an error message:
"java.lang.IllegalArgumentException:
java.lang.IllegalArgumentException:
Error handling command:
deploy -f ... arget\XyzEAR.ear --server-groups=abc-df-efg"
there were lot of blank spaces in the file argument in the displayed message.
The same method works fine with no error if I put the file name argument like "C:\target\XyzEAR.ear".
Is there any way to pass a longer file argument to 'deploy' method?
Responses
Piyush,
Can you clarify the exact command you are running? are you placing the '...' in the filename parameter, or is that the output after running the command?
Have you attempted to quote the file path?
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
