The server wasn't accessible on localhost:8080.
I said freezes because, I tried the domain script on a different machine again with a fresh new jboss installation and it continued after that step and it was accessible on localhost.
Also running the standalone script didn't have the same problem (the server was accessible on localhost:8080) on the machine that had it with the domain script.