Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 70432 invoked by uid 500); 14 Oct 2001 12:11:06 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 70421 invoked from network); 14 Oct 2001 12:11:05 -0000 Reply-To: From: "Dave Cramer" To: Subject: Tomcat 4.0 Final classpath and XML Parsers Date: Sun, 14 Oct 2001 08:06:35 -0400 Organization: fastcrypt.com Message-ID: <004001c154a8$ac6ba820$8201a8c0@inspiron> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: <001c01c15426$a6150390$8201a8c0@inspiron> X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi All, I have followed the directions in the docs and placed xerces in the lib directory of the webapp, but I still get this error java.lang.ClassCastException: org.apache.crimson.jaxp.DocumentBuilderFactoryImpl at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFact ory.java:152) My line of code which is producing this error is: javax.xml.parsers.DocumentBuilderFactory documentBuilderFactory = javax.xml.parsers.DocumentBuilderFactory.newInstance(); It looks to me like crimson is being loaded instead of my xerces.jar in my web app. Could this be related to the jaxp classloading problem found in the tomcat4 faq? Does anyone know of the solution to this problem? Any help would be appreciated Dave