Tuesday, November 14, 2017

Wildfly 11 final: add-user miserably fails when run in git bash (and maybe cygwin)

$ ./add-user.sh
Exception in thread "main" java.lang.IllegalStateException: WFLYDM0021: No java.io.Console available to interact with user.
at org.jboss.as.domain.management.security.adduser.AddUser.(AddUser.java:78)
at org.jboss.as.domain.management.security.adduser.AddUser.main(AddUser.java:240)
at org.jboss.modules.Module.run(Module.java:344)
at org.jboss.modules.Main.main(Main.java:525)

Simply pathetic. Just forget to run it from git bash, and execute the command from a regular powershell or cmd shell.

It's my fault, I should not try to deploy anything on Windows, apart VirtualBox to be able to run CentOS...

No comments: