admin@glassfish.java.net

Re: too verbose an output???

From: Rajeshwar V Patil <Rajeshwar.Patil_at_Sun.COM>
Date: Mon, 14 Apr 2008 17:29:55 -0700

Hello Kedar,

This is debug output. Its seems AS_DEBUG is set to true in your environment.

In non-debug mode, output is as follows, which is inline with other command output:
C:\installs\v3\glassfish\bin>asadmin create-virtual-server --echo=false --terse=false --xxxx
Usage: create-virtual-server --hosts=hosts [--httplisteners=httplisteners] [--defaultwebmodule=defaultwebmodule] [--state=state] [--logfile=logfile] [--property=property] vi
erver_id
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
 Each virtual server that is configured to the same connection group must have a unique host for that group..
Command create-virtual-server failed.


Thanks
Rajeshwar


----- Original Message -----
From: Kedar Mhaswade <Kedar.Mhaswade_at_Sun.COM>
Date: Monday, April 14, 2008 4:15 pm
Subject: too verbose an output???
To: admin_at_glassfish.dev.java.net


> 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.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>