Hi,
Has anyone successfully used jython to connect to CLI?
The cli.connect() fails no matter which overloaded method i use ! The simplest, no arg method also doesn't work for me, i get below...
>>> cli.connect()
Traceback (innermost last):
File "<console>", line 1, in ?
at org.jboss.as.cli.scriptsupport.CLI.connect(CLI.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
java.lang.IllegalStateException: java.lang.IllegalStateException: Unable to initialize command context.
I got the solution from this post jboss-cli-client.jar and jython