Are Client and JBoss on different machines?
If yes, you need to set in the properties files also username and password, because security-realm is enabled by default.
remote.connection.default.username=xxx
remote.connection.default.password=yyy
Only if the client runs locally you don’t need to set the username/password.