I had a question regarding Jboss 7.1.1 Final release and use of Jboss CLI Public API for server side programming. I would like to control deploy/undeploy of our application on the server. I am able to use jboss-cli.bat and connect to the controller and execute the deploy/undeploy commands. It is showing as connected on standalone@localhost:9999 through the batch file but gives me an exception when the same is tried through the program. Tried options by setting credentials, changing localhost to 127.0.0.1,etc.. But its not working. I am doing something very silly i believe or this not available for this version ?
This is the exception that is thrown from my Eclipse Program
8 Nov, 2013 11:35:52 AM org.xnio.Xnio <clinit>
INFO: XNIO Version 3.0.3.GA
org.jboss.as.cli.CommandLineException: The controller is not available at localhost:9999