Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 87697 invoked from network); 14 Jan 2002 06:22:42 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Jan 2002 06:22:42 -0000 Received: (qmail 18059 invoked by uid 97); 14 Jan 2002 06:22:24 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 18043 invoked by uid 97); 14 Jan 2002 06:22:23 -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 18032 invoked from network); 14 Jan 2002 06:22:22 -0000 Message-ID: <00df01c19cc6$372a9600$ca0aa8c0@compprinter> From: "Ravi Naidu" To: "Tomcat Users List" Subject: Re: TC 4.0.1/SAXParserFactory.newInstance() error Date: Mon, 14 Jan 2002 12:09:28 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 Disposition-Notification-To: "Ravi Naidu" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Dear All, Tomcat 4 is installed on D drive of my machine. and my web directory for jsp pages is situated on E drive. How do i set my web driectory path for the web server in the configuration files. Please help. Regards, Ravi. ----- Original Message ----- From: "Sriram Narayanan" To: "Tomcat Users List" Sent: Sunday, January 13, 2002 12:09 AM Subject: Re: TC 4.0.1/SAXParserFactory.newInstance() error > Hi, > > Looks like there's may be another copy of the Jaxp classes somewhere in the classpath..Please try the following: > > 1. Use the startup scripts that come with tomcat 4.0.1. These unset the CLASSPATH environment variables and crete custom variables for > Tomcat's startup. > > 2.Check to see if you're having any older Xerces or (Crimson+Jaxp) jars files in $JAVA_HOME/lib/ext > > 3. Remove all instances of the files xerces.jar, parser.jar, crimson.jar and jaxp.jar from where ever you have placed them in the $CATALINA_HOME > sub directories. > Having done that, place a copy of xerces.jar in $CATALINA_HOME/common/lib > The xerces.jar file that comes with tomcat 4.0.1 is 1.72 MB in size (1,808,883 bytes) > > 4. Just a question, is your app also bundling Xerces/crimson ? Look for the jars in the WIB-INF/lib sub-directory. > > > Sriram > > 1/12/02 11:17:36 PM, Mark wrote: > > >I'm attempting to port a working application to Tomcat 4.0.1 and hit a > >problem with SAX parsing. When this line of code is executed > > > > SAXParserFactory factory = SAXParserFactory.newInstance(); > > > >I got a ClassCastException error: > > > > java.lang.ClassCastException: org.apache.crimson.jaxp.SAXParserFactoryImpl > > at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:148) > > > >I looked at the Tomcat archives and tried what the Tomcat documentation > >says to do, eg. move xerces.jar into my WEB-INF directory or into the > >$CATALINA_HOME/lib directory and move crimson.jar and jaxp.jar out. > >Documentation located at > >http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html#Tom c > >at%204%20and%20XML%20Parsers After doing that however, I get the same > >error but from xerces (org.apache.xerces.jaxp.SAXParserFactoryImpl) vs. > >crimson. > > > >Has someone slayed this dragon before? If so, any help would be greatly > >appreciated. > > > >Mark > > > > > > > >-- > >To unsubscribe: > >For additional commands: > >Troubles with the list: > > > > > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > To unsubscribe: > For additional commands: > Troubles with the list: > > -- To unsubscribe: For additional commands: Troubles with the list: