You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Grabner Michael <gm...@sbox.tu-graz.ac.at> on 2001/11/30 07:30:56 UTC

getAddress problem

Hi!

I'm trying to run the sample 'addressbook' which doesn't run on my
machine yet. I already searched in archive
for the same problem. I also found many postings with the same error,
but there wasn't a real solution which seemed to be logical.
So I once more want to ask if anybody can help me.

Services are deployed. I also changed tomcat.sh, so that xerces.jar is
used before other parsers. However, when I try to GetAddress
of "John B. Good" with the script getaddress.sh(->added after the error
message), then the following error-message appears:

Generated fault:
Fault Code   = SOAP-ENV:Client
Fault String = Deployment error in SOAP service 'urn:AddressFetcher':
class name 'samples.addressbook.Address' could not be resolved:
samples.addressbook.Address

getaddress.sh:
-------------
#!/bin/sh
CLASSPATH=/home/michael/soap/soap-2_2
CLASSPATH=${CLASSPATH}:/home/michael/soap/soap-2_2/lib/soap.jar
CLASSPATH=${CLASSPATH}:/home/michael/soap/javamail-1.2/mail.jar
CLASSPATH=${CLASSPATH}:/home/michael/soap/jaf-1.0.1/activation.jar
CLASSPATH=${CLASSPATH}:/home/michael/soap/xerces-1_2_3/xerces.jar
CLASSPATH=${CLASSPATH}:/home/michael/soap/jakarta-tomcat-3.2.3/webapps/soap/WEB-INF/classes

export CLASSPATH
java samples.addressbook.GetAddress
http://localhost:8080/soap/servlet/rpcrouter "John B. Good"

With 'mystartup.sh' I start tomcat
mystartup.sh:
------------
#!/bin/sh
JAVA_HOME=/usr/java/jdk1.3.1_01
export JAVA_HOME
TOMCAT_HOME=/home/michael/soap/jakarta-tomcat-3.2.3
export TOMCAT_HOME
CLASSPATH=/home/michael/soap/soap-2_2/lib/soap.jar
CLASSPATH=${CLASSPATH}:/home/michael/soap/javamail-1.2/mail.jar
CLASSPATH=${CLASSPATH}:/home/michael/soap/jaf-1.0.1/activation.jar
CLASSPATH=${CLASSPATH}:/home/michael/soap/xerces-1_2_3/xerces.jar
CLASSPATH=${CLASSPATH}:/home/michael/soap/soap-2_2
CLASSPATH=${CLASSPATH}:/home/michael/soap/jakarta-tomcat-3.2.3/webapps/soap/WEB-INF/classes

export CLASSPATH
$TOMCAT_HOME/bin/startup.sh

Thanks,
    Mike