dhcp-usca14-133-43:cli kedar$ asadmin create-virtual-server --xxxx
0 descriptor =
jar:file:/Users/kedar/Work/V3/v3/v3/target/glassfish/modules/admin-cli-10.0-SNAPSHOT.jar!/CLIDescriptor.xml
basePackage: com.sun.enterprise.admin.cli
propertyFile: LocalStrings
CLI001 Invalid Command, create-virtual-server.
RemoteCommandParser:
**********
name = create-virtual-server
Options = {xxxx=}
Operands = []
**********
create-virtual-server --echo=false --terse=false --xxxx
URL:
http://localhost:8080/__asadmin/create-virtual-server?xxxx=
-------- RESPONSE DUMP --------------
Signature-Version: 1.0
exit-code: FAILURE
children-type: null
message: create-virtual-server command requires the hosts parameter :
A comma-separated (,) list of values allowed in the host request head
er to select the current virtual server. Each virtual server that is
configured to the same connection group must have a unique host for t
hat group..
cause: org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisf
ied dependency exception : java.lang.String org.glassfish.web.admin.c
li.CreateVirtualServer.hosts
children: Usage: create-virtual-server --hosts=hosts [--httplisteners=
httplisteners] [--defaultwebmodule=defaultwebmodule] [--state=state]
[--logfile=logfile] [--property=property] virtual_server_id
Name: Usage: create-virtual-server --hosts=hosts [--httplisteners=http
listeners] [--defaultwebmodule=defaultwebmodule] [--state=state] [--l
ogfile=logfile] [--property=property] virtual_server_id
message: Usage: create-virtual-server --hosts=hosts [--httplisteners=h
ttplisteners] [--defaultwebmodule=defaultwebmodule] [--state=state] [
--logfile=logfile] [--property=property] virtual_server_id
----------------------------------------------
Usage: create-virtual-server --hosts=hosts [--httplisteners=httplisteners]
[--defaultwebmodule=defaultwebmodule] [--state=state] [--logfile=logfile]
[--property=property] virtual_server_id
com.sun.enterprise.cli.framework.CommandException: FAILURE :
create-virtual-server command requires the hosts parameter : A comma-separated
(,) list of values allowed in the host request header to select the current
virtual server. Each virtual server that is configured to the same connection
group must have a unique host for that group..
Cause: org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied
dependency exception : java.lang.String
org.glassfish.web.admin.cli.CreateVirtualServer.hosts
at
com.sun.enterprise.admin.cli.RemoteCommand.processMessage(RemoteCommand.java:496)
at
com.sun.enterprise.admin.cli.RemoteCommand.handleResponse(RemoteCommand.java:329)
at
com.sun.enterprise.admin.cli.RemoteCommand.handleResponse(RemoteCommand.java:294)
at
com.sun.enterprise.admin.cli.RemoteCommand.handleRemoteCommand(RemoteCommand.java:204)
at
com.sun.enterprise.admin.cli.RemoteCommand.handleRemoteCommand(RemoteCommand.java:62)
at com.sun.enterprise.admin.cli.RemoteCommand.<init>(RemoteCommand.java:57)
at com.sun.enterprise.admin.cli.AsadminMain.remote(AsadminMain.java:105)
at com.sun.enterprise.admin.cli.AsadminMain.main(AsadminMain.java:55)
FAILURE : create-virtual-server command requires the hosts parameter : A
comma-separated (,) list of values allowed in the host request header to select
the current virtual server. Each virtual server that is configured to the same
connection group must have a unique host for that group..
Cause: org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied
dependency exception : java.lang.String
org.glassfish.web.admin.cli.CreateVirtualServer.hosts
Command create-virtual-server failed.
I thought only usage text would be displayed. This is rather too verbose and
frankly, annoying.
Can this be corrected?
Thanks.