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 6A94D186C6 for ; Sun, 6 Mar 2016 17:48:27 +0000 (UTC) Received: (qmail 65776 invoked by uid 500); 6 Mar 2016 17:48:23 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 65701 invoked by uid 500); 6 Mar 2016 17:48:23 -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 65690 invoked by uid 99); 6 Mar 2016 17:48:23 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Mar 2016 17:48:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3CB80C12B6 for ; Sun, 6 Mar 2016 17:48:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.448 X-Spam-Level: * X-Spam-Status: No, score=1.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 5Xsul8PfKhcO for ; Sun, 6 Mar 2016 17:48:22 +0000 (UTC) Received: from mail-io0-f181.google.com (mail-io0-f181.google.com [209.85.223.181]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 258335FB1B for ; Sun, 6 Mar 2016 17:48:22 +0000 (UTC) Received: by mail-io0-f181.google.com with SMTP id n190so110116077iof.0 for ; Sun, 06 Mar 2016 09:48:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=RqZGCkgMEOxheyNZLICUgUUUFqbyXVDHeb56U9tcEP8=; b=Xx2LT82+RizZwF5qwgo5YAzx5XoFsmgXQrPIDWBEWKpsDEE7yU1+HkcXduP32gb50s zDVe16YRs/Zxv57zFFu2+N/+CSlfilkU70eou+oS20XvO493+kqt4HoxtUN20PAe4igj 1EcgX1nuZJYCJmSIG9RTzvsKQm19SU08TXvy3WjFYALQAw43cHMjaovdKjruo4TOnz8y AThgXsZPs2sqaiFeiWQnd1grrDaXf3qVm6JZw1bgiKLSavQrDgM1IlbUst8YhVRNtVI6 C43GzxsN5puTRhwZE5VIeSiKqcbPCqL67iM1UItDqNAqGgcoVrZ3d47C9i4Yp0l5PpLz 9ICg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=RqZGCkgMEOxheyNZLICUgUUUFqbyXVDHeb56U9tcEP8=; b=MSttI1rDQzxVe3xwDwfx5UA8Bc5HAfSMEuuqiDsa4HqUNtdCX1zKdMFZAnp3HFAb9r FY24xg0Gxhh7oKmD4X+Xb3JUdTNBg5x6u6v3fduhyKg79ELWBqeNbyRssyNd40eNlxwe ogz2n7FslPagW+cUAYuKvpp2sJXdy1M9jRmOMznIURxG/j7mbVFNtJuguIrfYj5UGXl0 ADdZgR1fFoJX/gW3vWRdRqsFVEoE2tSinVioDOMKmHT5pngGIaHphYde2Sa1FPgQRoK1 Lfw7v7N3qOydm4fNRFi59u1rlJLlJ685fyishEDFEQbtGhZxt0QM/Ygl3rpfyqkmi0JD LmbA== X-Gm-Message-State: AD7BkJJhcunDc/cLVljDk2bvNjZXRUiUpZjwBVtS+mMgKas2mntnXSuIwtMTUQtJDsMTt0xZmuAccObVEV1Zew== MIME-Version: 1.0 X-Received: by 10.107.15.30 with SMTP id x30mr5670205ioi.35.1457286501534; Sun, 06 Mar 2016 09:48:21 -0800 (PST) Received: by 10.36.184.7 with HTTP; Sun, 6 Mar 2016 09:48:21 -0800 (PST) Date: Sun, 6 Mar 2016 12:48:21 -0500 Message-ID: Subject: Warning response header From: Sean Dawson To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a113edd44429502052d64f4c3 --001a113edd44429502052d64f4c3 Content-Type: text/plain; charset=UTF-8 Tomcat 8_32 Windows 7 Java 8_51 RestEasy 3.0.11.Final GWT 2.7.0 (Jetty jetty-9.3.5.v20151012) Servlet code makes a RestEasy call to another servlet (same container) - second servlet sets the 'Warning' HTTP header on response. Would like to access that in first servlet but when running in Tomcat, that header is not included. Code to get header in first servlet: Object headers = ((ClientResponseFailure) e).getResponse().getResponseHeaders().get("Warning"); Also tried: getHeaders(), getStringHeaders(), and getHeaderString(). When running GWT in superdev mode in IntelliJ (15.0.4) using Jetty, the above returns a List with one item that contains the warning string. When remote debugging Tomcat, that call returns null. Added this to web app xml, and also tried Tomcat conf/web.xml... CorsFilter org.apache.catalina.filters.CorsFilter cors.exposed.headers Warning CorsFilter /* Also tried cors.allowed.headers. Any pointers? --001a113edd44429502052d64f4c3--