Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 30329 invoked from network); 2 Dec 2010 22:25:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Dec 2010 22:25:17 -0000 Received: (qmail 17358 invoked by uid 500); 2 Dec 2010 22:25:14 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 17173 invoked by uid 500); 2 Dec 2010 22:25:14 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 17158 invoked by uid 99); 2 Dec 2010 22:25:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 22:25:14 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.191.85.2] (HELO web36502.mail.mud.yahoo.com) (209.191.85.2) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Dec 2010 22:25:07 +0000 Received: (qmail 84634 invoked by uid 60001); 2 Dec 2010 22:24:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1291328685; bh=yd52I+3OIbYj6kgkswbIADPMlhcvGGWidn9VnqAP7A0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=L3dtcUfwqOxCOAT/Qc+iQZ2bsaFFTyhzq8WskoMCJlBSSVfuuINzGeDOAwe8/UeepD0Ec3L4X0PHIAfaRpaA5/87dasXxn6gohv7vn3fCnM5HoO3f0A8OSnzCpOtAdKdVQIO7ltgrTfa2iHnppAvOg+1KV6GCggxV1jXCu8WuiI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=08nzv0Zhl44z4Iuc9kT9qGMpRN4VkqgKEEsW8kBc37orJI02BYsvHPp2ddCoFZtgK8tN1Y53Na0StrmazpKgWXuT0v6akuwgoiryVYM4EeMBakuzt0825hzOXRwrbQapotPQxKrc1FhTxJHIfadmv+shjWArIc4FaDtdk6YL/Jc=; Message-ID: <843229.71453.qm@web36502.mail.mud.yahoo.com> X-YMail-OSG: rEHrMTwVM1lyPnzXkS8Ems0H9.OQI88IUvdX7UoOQfvTIZJ o2iXnSSMyFb7b.0b6ZQSbzDrhyr9jx68D1JS3j2qdmd4iA3CejcHux6zP6OX QPpvXbcBENnge3ZWJ8q8rSGbbg6LTW3kEWnXb_LOsiwrYLuOkDV3DlFwcQU6 yHQqbT35jNbpCVwPILx9.fAklJKSnjU9ObQ6gRHp4kmz1Xrp3hr1T72aZarq iQLXN9r9JJuU57UuJZtmj_P6Qcr09mr2ohG8Yf6bUJmJtG_8yLAn3XUysdfP TWgoD02UNE8P_7ZKLjESO7J9iReF9Tdv9921_oXgsyFq.gmYy9nGIcod9vlO KOp9zHPSzopZLFeizBfay5VZNtHIlQXCkSoJeYQRuleb5Bnx9FA-- Received: from [84.75.180.203] by web36502.mail.mud.yahoo.com via HTTP; Thu, 02 Dec 2010 14:24:45 PST X-Mailer: YahooMailRC/553 YahooMailWebService/0.8.107.285259 References: <56748.85236.qm@web36504.mail.mud.yahoo.com> <73505.1769.qm@web36504.mail.mud.yahoo.com> <4CF777E8.1090107@pidster.com> <175594.75190.qm@web36501.mail.mud.yahoo.com> <4CF7F706.9020005@pidster.com> Date: Thu, 2 Dec 2010 14:24:45 -0800 (PST) From: Justin Case Subject: Re: automatic deployment without server.xml - bad request To: Tomcat Users List In-Reply-To: <4CF7F706.9020005@pidster.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > From: Pid > > On 12/2/10 12:34 PM, Justin Case wrote: > > Error is fine, as long it's a 404 (and not this enigmatic 400)... > > 400 isn't enigmatic and /is/ an error. ;) It IS an error indeed, but we're not talking about throwing just ANY random error number here :) 400 is a specific error which to my untrained eye has absolutely nothing to do with the fact that under the named context there's no application deployed. That's why a 404 would have sent me much sooner in the right direction - resource not found, instead of trying endlessly to play with the request headers and the HTTP protocol details. But maybe it's just me. > I'd suggest you make a simple empty ROOT app. Tomcat will then serve > 404s for missing URLs. You could also customise the 404 response page > to suit. Yeah I probably will do that - but I will still regard it as a dirty hack... Otherwise thanks a lot for your support, I was obviously misunderstanding what the Path parameter of the Context is expected to do. Now I know what I have to change. Or I think so at least. Back to the drawing board. Thanks a lot to you all gals/guys, JC --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org