I haven't yet played with JDK1.4 yet.  However, comments I have heard
suggest that it may come with an XML parser built in.  I think
Tomcat 3.1 requires xml.jar be used which may be conflicting with
the build in XML parser.  I would recommend upgrading your
Tomcat.

Larry

> -----Original Message-----
> From: David Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 12:15 AM
> To: [EMAIL PROTECTED]
> Subject: That annoying ClassNotFoundException again
> 
> 
> 
> I'm having the same problem others have had, yet none of the 
> fixes seem to
> work. I'm running an installation that worked just fine on 
> Win2K Server,
> JDK1.3.1, and Tomcat 2.1. When I upgraded to JDK1.4 I started getting:
> 
> java.lang.ClassNotFoundException: com/sun/xml/parser/Parser
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Unknown Source)
>         at 
> org.xml.sax.helpers.ParserFactory.makeParser(Unknown Source)
>         at 
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191)
>         at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
>         at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> FATAL: configuration error
> java.lang.Exception: Error creating sax parser
>         at 
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207)
>         at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
>         at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> 
> None of the .jar files has been moved from the 
> TOMCAT_HOME\lib directory,
> and this worked fine before. In particular, I have xml.jar in 
> the classpath,
> which has the requested com/sun/xml/parser/Parser class in 
> it. After reading
> the archived newsgroups I tried:
> 
> 1. adding a parser.jar file to TOMCAT_HOME\lib
> 
> 2. checking all other .jar's in the classpath for a conflict on the
> Parser.class file
> 
> 3. moving xml.jar to the JAVA_HOME/lib/ext directory
> 
> Nothing seems to help. Anyone have a good idea, other than 
> just returning to
> the old JDK version? Any hints greatly appreciated.
> 
> 
> 
> David Epstein
> 420 West 118th Street
> Columbia University
> New York, NY 10027
> 212-854-7566 (voice)
> 212-222-0598 (fax)
> http://paradocs.pols.columbia.edu/myweb
> 
> 
> 
> 

Reply via email to