The solution Wei is refering to says "Do not use Tomcat 4.0.3". I am using Tomcat 4.0 and having similar problem.
Exception in
thread "main" java.lang.NoClassDefFoundError: javax/xml/parsers/Doc
umentBuilderFactory
Installation instructions says,
In the WEB-INF directory, you'll find a "lib" directory. copy the jars associated with the JAXP 1.1 XML compliant parser of your choice. This generally means either the xerces.jar from the xml-xerces distribution, or the crimson.jar and jaxp.jar from the JAXP 1.1 reference implementation.
But FAQ says,
Tomcat will not load classes with package names starting "java." or "javax." from the WEB-INF directory. jars containing such classes need to be installed in $TOMCAT_HOME/common/lib rather than in WEB-INF/lib. Currently (April 25, 2002) jaxrpc.jar is such a jar.
Which of the above is true? If I do what FAQ says, I get the error, if I follow the installation instructions, I get the same error. My classpath is correct and I have tried restarting server and opening new cmd window etc. BTW my OS is windows 2000.
If I have local copy of jaxp.jar and xerces.jar, do I need to delete the copies from common\lib directory?
Any suggestions?
Chintan