Hi all I'm new on JBoss and I'm learning how to write a gradle script to automate deployment process on JBoss. I've read a lot of articles and they are all saying the command is:
{JBOSS_HOME}/bin/jboss-admin.bat --connect command=:shutdown
But it always says the controller is not available, I'm sure the server is already started:
C:\jboss-as-web-7.0.2.Final\bin>jboss-admin.bat --connect command=:shutdown
Authenticating against security realm: 127.0.0.1
The controller is not available at localhost:9999
You are disconnected at the moment. Type 'connect' to connect to the server or '
help' for the list of supported commands.
Press any key to continue . . .
I know that I changed the property file after installation and now the admin CLI requires credential, but I could not find a way to pass username and password along with the admin.bat, so in what way could I shut it down? Thanks