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 B33829B4C for ; Wed, 18 Apr 2012 15:50:15 +0000 (UTC) Received: (qmail 37788 invoked by uid 500); 18 Apr 2012 15:50:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 37604 invoked by uid 500); 18 Apr 2012 15:50:12 -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 37594 invoked by uid 99); 18 Apr 2012 15:50:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 15:50:12 +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 knst.kolinko@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Apr 2012 15:50:04 +0000 Received: by yenr5 with SMTP id r5so4698484yen.18 for ; Wed, 18 Apr 2012 08:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=cdkMMUxOuf7zmW+VbCQzeK6/vmBEYVuaWqg5ubPlpuw=; b=kPa+gTMGm/xjlkB8VYbAvaS2hsLLnXbSyQtFQaBMpLtKfL5HSmfrhs0TNWEl8tTzFT TShtwvVn9KzwnXRAdrNFKlzoe/zfgQMk1RPDvHCpUdZgQHUbAQSNRNsmIffB1FixJLXG E0CaXryHYIc23EHT0ei6WbBBDlyxFqoH7UFdAfboMA51yPCImiMUuFBq5z5MwH9Sp/EE 37w8gJcqWGcPHzT6e7TnPCzbWxsR7aNpqqG0L8nv8cjU+DeLXdhZanMz1j/qXEKDV8lV tWJinT7jw1pu/8QTzCsIVldOONZH17t0OMMWyGUXUfQ6sGjP1mZxnmYu+1b6PNJq9jpN gUpg== MIME-Version: 1.0 Received: by 10.101.152.4 with SMTP id e4mr859208ano.45.1334764183984; Wed, 18 Apr 2012 08:49:43 -0700 (PDT) Received: by 10.146.204.18 with HTTP; Wed, 18 Apr 2012 08:49:43 -0700 (PDT) In-Reply-To: <002001cd1d70$68e96000$3abc2000$@com> References: <002001cd1d70$68e96000$3abc2000$@com> Date: Wed, 18 Apr 2012 19:49:43 +0400 Message-ID: Subject: Re: web.xml and schema location From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2012/4/18 Mark Claassen : > Back in Tomcat 5, we had the problem with tomcat trying to access java.su= n.com. =A0Lots of our servers are behind firewalls, so this > caused an error in the log. =A0We realized one way to fix this was just t= o remove the schemaLocation attribute from the web.xml files. > > Below is the top of the main web.xml in Tomcat 7. =A0I did a snoop, and i= t didn't seem to try to access java.sun.com this time. =A0Has > this been changed at some point? =A0Or did I just have some error in my s= noop? > 1. Do you have validation enabled? E.g. with org.apache.catalina.STRICT_SERVLET_COMPLIANCE=3Dtrue 2. Tomcat has all the necessary schemas bundled (servlet-api.jar). I do not know why it was contacting external resource in your case. > > =A0 =A0 =A0 =A0 xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" > =A0 =A0 =A0 =A0 xsi:schemaLocation=3D"http://java.sun.com/xml/ns/javaee h= ttp://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" > =A0 =A0 =A0 =A0 version=3D"3.0"> > Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org