payara 5 asadmin命令似乎有问题。当您从Windows 7 cmd启动命令时,程序会提示您输入用户并开始键入命令,这会引发异常。
版本4.1可以正常工作。
asadmin> list-domains
CLI141: No Domains to list.
Command list-domains executed successfully.
asadmin> create-domain ioit
Enter admin user name [Enter to accept default "admin" / no password]>
Enter the admin password [Enter to accept default of no password]>
Exception in thread "main" java.io.IOError: java.io.IOException
: The parameter is incorrect
at java.io.Console.readPassword(Console.java:328)
at com.sun.enterprise.admin.cli.CLICommand.readPassword(CLICommand.java:1191)
at com.sun.enterprise.admin.cli.CLICommand.getPassword(CLICommand.java:1134)
at com.sun.enterprise.admin.servermgmt.cli.CreateDomainCommand.getAdminPassword(CreateDomainCommand.java:369)
at com.sun.enterprise.admin.servermgmt.cli.CreateDomainCommand.validate(CreateDomainCommand.java:236)