idannehl [
https://community.jboss.org/people/idannehl] commented on the document
"JBoss AS7 Command-line public API"
To view all comments on this document, visit:
https://community.jboss.org/docs/DOC-17597#comment-10694
--------------------------------------------------
In my case I forgot to give the authentication information user/password:
try
{
ctx =
org.jboss.as.cli.CommandContextFactory.getInstance().newCommandContext(user, password);
ctx.connectController(host, port);
} catch (Exception e)
{
throw e;
}
works fine for me.
Regards Ines
--------------------------------------------------