Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 1942 invoked from network); 2 Apr 2003 21:28:45 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 2 Apr 2003 21:28:45 -0000 Received: (qmail 1900 invoked by uid 97); 2 Apr 2003 21:30:38 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 1893 invoked from network); 2 Apr 2003 21:30:38 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 2 Apr 2003 21:30:38 -0000 Received: (qmail 1061 invoked by uid 500); 2 Apr 2003 21:28:34 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 1050 invoked from network); 2 Apr 2003 21:28:34 -0000 Received: from main.gmane.org (80.91.224.249) by daedalus.apache.org with SMTP; 2 Apr 2003 21:28:34 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 190pm2-0008Ec-00 for ; Wed, 02 Apr 2003 23:27:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-dev@jakarta.apache.org Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 190plx-0008E6-00 for ; Wed, 02 Apr 2003 23:27:53 +0200 From: Costin Manolache Subject: Re: Why does Tomcat use xerces under java 1.4 instead of the internal jvm classes? Date: Wed, 02 Apr 2003 13:25:07 -0800 Lines: 52 Message-ID: References: <005101c2f0ff$ee1efc50$69f72dc7@BAMBI> <000501c2f8c1$bdc86a40$69f72dc7@BAMBI> <3E8A51BC.1030807@apache.org> <3E8B07CD.3000007@apache.org> <3E8B4ACF.4060102@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@main.gmane.org User-Agent: KNode/0.7.2 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jean-Francois Arcand wrote: > > > Costin Manolache wrote: > >>Jean-Francois Arcand wrote: >> >> >> >>>>At least in tomcat5 I never use xerces - only the bundled parser, and so >>>>far I've seen no problems. >>>> >>>> >>>> >>>Crimson is a very good parser, and it still faster that Xerces in some >>>case. The only reason I see for bundling xerces is for when we turn on >>>validation & the web.xml used a schema for validation. >>> >>> >> >>So why not making the "web.xml validator" a separate download ? If >>people want to turn on validation, they'll need to get the validator - >>which will include xerces and some simple script to do the validation. >> >> > That means removing DTD validation from the current implementation? For > me, seems a feature regression. If we stop validating, we should have a > very good documentation in other to avoid confusion and hours or > debugging. No, I'm not sugesting to remove DTD validation. Just that it hurts people - and without too much gain. But it's actually the reverse - the DTD validation is the one that causes confusion and hours of debugging ( plus slow startup time ). Good software should be tolerant with the user input. A tool that generates the web.xml should be strict and make sure the output is valid. A user who wants to be sure the webapp it ships is correct should validate the web.xml ( against DTD or schema ). A deploy tool could also validate web.xml and the tlds. It is too late to change the behavior for DTD ( for backward compat, etc ), but at least schema validation can be avoided. BTW - in the web.xml files that I write I usually remove the declaration on the top ( to make sure the validation doesn't happen ). Costin --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org