Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 17109 invoked from network); 3 Aug 2004 15:27:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Aug 2004 15:27:39 -0000 Received: (qmail 3214 invoked by uid 500); 3 Aug 2004 15:26:46 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 3114 invoked by uid 500); 3 Aug 2004 15:26:45 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 3091 invoked by uid 99); 3 Aug 2004 15:26:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [146.140.221.6] (HELO androcus.capcom.de) (146.140.221.6) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 03 Aug 2004 08:26:41 -0700 Received: from fwdmz.capcom.de ([146.140.221.254] helo=wormhole.capcom.de) by androcus.capcom.de with smtp (Exim 4.30) id 1Bs18g-0002LU-LE for tomcat-user@jakarta.apache.org; Tue, 03 Aug 2004 17:23:42 +0200 Reply-To: From: "Ben Bookey" To: "Tomcat User List" Subject: SUN or APACHE, xml parser -- How do I know which is used ? Date: Tue, 3 Aug 2004 17:27:32 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Dear List, xmlParserAPIs.jar and xercesImpl.jar (version 2) libs are supplied in the %CATALINA_HOME%/common/endorsed path. This path allows Tomcat to load a parser (or any other none jcp library) and override the default jar bundled with the JDK 1.4 release. a)The SUN JDK 1.4 release contains a version of Xerces. When I remove the xmlParserAPIs.jar and xercesImpl.jar located in the %CATALINA_HOME%/common/endorsed path, then Tomcat can not read the web and server.xml. Is this because the version of xerces bundled with the JDK 1.4 is an older version, or is this a class-path configuration error on my machine? I would expect the JDK to contain xerces v2 like that supplied with Tomcat 4.1.x. b) The following code works on new Tomcat 4.1.* test installations, but NOT always. How can I garantee that the parser xerces supplied with Tomcat 4.1.* is always loaded. documentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); regards Ben Bookey --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org