Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E13198FC5 for ; Mon, 8 Aug 2011 15:11:59 +0000 (UTC) Received: (qmail 58697 invoked by uid 500); 8 Aug 2011 15:11:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 58386 invoked by uid 500); 8 Aug 2011 15:11:55 -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 58377 invoked by uid 99); 8 Aug 2011 15:11:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 15:11:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pid@pidster.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-wy0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 15:11:47 +0000 Received: by wyf22 with SMTP id 22so64412wyf.18 for ; Mon, 08 Aug 2011 08:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pidster.com; s=google; h=message-id:date:from:organization:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:openpgp :content-type:content-transfer-encoding; bh=Dhb5A9sEWQHpme9VBa/76pJE0N81HjDVlSzREaZlbvI=; b=TZRI8GHfLuj04X55q1Dy7B1U6DLzpwgqdJmxh8C+5MJ3Uut5AaI/Y6QFaNd/T3Gdml CATN6PSDxyzvA8kYBAbix1vD8knZ7cDUJCdBRD2Ldphax3Ndf5BhFWynLQ+DLCF7lD9C v8pSZJafd/4Im9JWlLabZLpEzgtjrR/ZoyQgY= Received: by 10.227.174.79 with SMTP id s15mr4540004wbz.68.1312816287505; Mon, 08 Aug 2011 08:11:27 -0700 (PDT) Received: from Asura.local (cpc10-lewi14-2-0-cust355.2-4.cable.virginmedia.com [82.4.249.100]) by mx.google.com with ESMTPS id fm9sm1884300wbb.10.2011.08.08.08.11.25 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Aug 2011 08:11:26 -0700 (PDT) Message-ID: <4E3FFC9E.3060800@pidster.com> Date: Mon, 08 Aug 2011 16:11:26 +0100 From: Pid Organization: Pidster Inc User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat 7.0.19 overrides the http status code on forward References: In-Reply-To: X-Enigmail-Version: 1.2 OpenPGP: id=62590808 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 08/08/2011 15:07, Eugen Paraschiv wrote: > I'm seeing some strange behavior with a RequestDispatcher forward in Tomcat. > The the exact code doesn't generate the problem on Jetty, so it is probably > related to the servlet implementation. > > The problem is as follows: Spring does a forward on an existing > request/response - at which point, the response has the http status code of > 404; after the forward, the code is 500. > > The actual logic happens in Spring (MVC), at: InternalResourceView - > renderMergedOutputModel. The Spring code does mention that the forwarded > resource is supposed to determine the content type itself, but nothing about > the code being overridden as well. > > I'm using Spring 3.0.5 on a JDK 6.0.26. > > Any help on this is appreciated. Thanks. Are there any errors in the logs? Are the various log levels set appropriately? A 500 status often also produces a stack trace in the logs. Does it in this case? p --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org