Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 7448 invoked from network); 6 Dec 2005 15:49:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Dec 2005 15:49:50 -0000 Received: (qmail 86864 invoked by uid 500); 6 Dec 2005 15:49:43 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 86800 invoked by uid 500); 6 Dec 2005 15:49:42 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 86780 invoked by uid 99); 6 Dec 2005 15:49:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 07:49:42 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ammulder@gmail.com designates 64.233.162.199 as permitted sender) Received: from [64.233.162.199] (HELO zproxy.gmail.com) (64.233.162.199) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2005 07:49:41 -0800 Received: by zproxy.gmail.com with SMTP id 9so75993nzo for ; Tue, 06 Dec 2005 07:49:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WGjSojjBLNAVv4Bg1x5saJ9Tg/wppfzH88lzb9xf9v4dADylVsObhGxh9PFIZLJoDKY4MSNUKlYxhKKulv47GwbstDBLoRPMouPwoe3BW4bwsvIEtL62duGpl+IibvxPfjq81USX2udVDFIdESCANb57cia+r+P4p/ZsrhbiwvE= Received: by 10.37.18.34 with SMTP id v34mr498925nzi; Tue, 06 Dec 2005 07:49:20 -0800 (PST) Received: by 10.37.13.69 with HTTP; Tue, 6 Dec 2005 07:49:20 -0800 (PST) Message-ID: <74e15baa0512060749i6176d2b0v1310384fe8e81edc@mail.gmail.com> Date: Tue, 6 Dec 2005 10:49:20 -0500 From: Aaron Mulder Sender: ammulder@gmail.com To: dev@geronimo.apache.org Subject: Re: jsr88 DeploymentStatus messasages same as command line messages? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N There is one setting that affects JSR-88 output. The DeploymentManager you get is an instance of JMXDeploymentManager, and JMXDeploymentManager has a method to set the message verbosity. There are actually two booleans, one that controls whether the DeploymentManager itself logs exceptions, and one that controls whether it puts more detail like stack traces into the status messages. It may be that in your environment those are buth defaulting to false and you can cast to JMXDeploymentManager and call the method to set one or both to true. I don't recall the name of the method, but it's probably the only one that takes two booleans as an argument. :) Under the covers, it sets flags on its internal CommandContext object. All that said, in your case (deploying same app twice), the CLI deploy tool may manually check to see whether the thing you're trying to deploy is already depoyed (by listing the available modules via JSR-88 and comparing to that list), or it may have special handling for that condition. I'll take a look later. Thanks, Aaron On 12/6/05, Sachin Patel wrote: > Aaron, > > Do we want to make status messages returned back from the jsr88 commands = the > same as the messages returned back from cli deploy? In particular, the > messages when a command is completed or failed. > > For example, in a scenario where I attempt to deploy an app where the app= is > already deployed and running, in the cli the message displayed is... > > Error: Unable to distribute snoop.war: Module snoop already exists > in the server. Try to undeploy it first or use the redeploy > command. > > IIRC, all I get in the jsr88 status message is "Unable to distribute > snoop.war". > > Would it be good for client code such as the tools to get rest of the > message appended to the message? > > Also, I need to react to different scenarios to recover if errors like th= is > occur so not only would a specfic message would be good, but it would be > nice if we could have error codes, so I can code against the error codes > rather then the entire message. > > Sachin > > >