Created attachment 526764 [details] CLI script Description of problem: CLI script examples references unknown external function http://docs.redhat.com/docs/en-US/JBoss_Operations_Network/2.4/html/CLI_Guide/Scripted_Group_Deployments_using_the_CLI_API.html at lines 1, 11, 16, 29, and 51 ... the example script references an unknown external function named usage(); Actual results: Exception in thread "main" org.rhq.enterprise.client.script.CLIScriptException: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: ReferenceError: "usage" is not defined. (<Unknown source>#29) in <Unknown source> at line number 29 Expected results: example script works. Additional info: attachments
Hmm. I could have sworn that this example was on the RHQ wiki, but I cannot find it. I can find and article on the JBoss wiki (http://community.jboss.org/wiki/JON23ScriptedGroupDeploymentsUsingTheCLIAPI), but I don't recognize the author. I'll check the example scripts in the source and see what I come up with.
*** This bug has been marked as a duplicate of bug 738063 ***