You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Michael Hartman <mp...@home.com> on 2001/05/05 02:45:09 UTC

SOAP 2.1 example fixes

To fix some issues running the SOAP 2.1 examples, try this:

First, use a lower version of Xerces than 1.3.1; there's some bug/issue with
using that version.  I recommend 1.2.1

In the soap-2_1\samples\addressbook\testit.cmd batch file, add the following
line right after the @echo off command:

SET
CLASSPATH=.;..\..;C:\java\soap-2_1\lib\soap.jar;C:\java\xerces-1_2_1\xerces.
jar;C:\java\javamail-1.2\mail.jar;C:\java\jaf-1.0.1\activation.jar;%CLASSPAT
H%

Replace paths with whatever is appropriate for your system.  This resolves
the NoClassDefFoundExceptions.

Then for the server side of things, create a directory under the SOAP's
webapps like so:

C:\java\soap-2_1\webapps\soap\WEB-INF\classes\samples\addressbook

and copy the compiled sample class files that the server will need; namely:
Address.class
AddressBook.class
PhoneNumber.class

For Tomcat 3.2.1, be sure to edit the tomcat.bat to include the xerces.jar
in the classpath before everything else (like outlined in SOAP's
installation guide) but for the other SOAP related jars (soap.jar,
activation.jar, and mail.jar), simply create another directory under the
SOAP's webapps like so:

C:\java\soap-2_1\webapps\soap\WEB-INF\lib

and copy the jars there.  Tomcat will automatically include any classes in
the "classes" directory or "lib" under a webapp's WEB-INF directory.  This
resolves the "cannot resolve samples.addressbook.Address" faults.  Start
Tomcat and launch the testit.cmd!

FYI: I'm running SOAP 2.1, Xerces 1.2.1, Tomcat 3.2.1, Apache 1.3 under
Windows 2000 SP1


Good luck!
Michael Hartman


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org