Hi all, I am new to web services, so please bear with me if my question doesn't make sence. I tried to install Apache axis on top of tom cat. And I was able to access http://localhost:8080/axis/index.html with my browser. When clicked on "Administer Axis", I got the following error: type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception ... ... root cause java.lang.NoClassDefFoundError: javax/xml/soap/SOAPElement
I added all the required jar files to my classpath, and I have written a little test program to verify the correctness of classpath. Can anyone tell me what I did wrong? Thanks very much.
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
Author and all-around good cowpoke
Joined: Mar 22, 2000
If you ever installed an earlier version of JAXP or another XML parser package on your system, it is possible that Java is picking up that package first, and not finding that class. Look in JAVA_HOME/jre/lib/ext for example. Bill