At 12:35 PM 7/26/2001 -0500, Rich Catlett wrote:
>I have been at this for over two days.  I can't get the services deployed.  When I 
>run testit.sh in the addressbook sample I get this error message.
>
><h3>Root Cause:</h3>
><pre>
>java.lang.NoClassDefFoundError
>   at org.apache.soap.server.ServiceManager.<init>(ServiceManager.java:83)...
>
>so on and so forth.
>
>I'm using soap 2.2 in tomcat 4.0 with xerces 1.4.2.  The xerces.jar is first in the 
>classpath, it shows up first in the classpath printed by tomcat on startup, and no 
>other xerces.jar is in the java_home/jre/lib/ext dir or in the my classpath.  I'm 
>stumped. Please help.

The ServiceManager.<init> code, in your 2.2 download directory
  /soap-2_2/src/org/apache/soap/server/ServiceManager.java
has line 83
>   protected DocumentBuilder      xdb = XMLParserUtils.getXMLDocBuilder();

You might be messed up by a stray copy of parser.jar or crimson.jar;
Look for jars anywhere that contain the string DocumentBuilderFactory
(I wouldn't worry much about copies of jaxp.jar or xalan.jar, but on
this machine I have six parser.jar and 4 crimson.jar, as well as 13 xerces.jar
just for luck. It's easy to lose track.)

Did you try running the cp.jsp and (more relevantly, since testit.sh depends on
the command-line settings) the cp.java I sent? It does try to test precisely 
this, looking for your DocumentBuilder class as loaded by XMLParserUtils...

Tom Myers


Reply via email to