xml-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean MacRoibeaird - Sun ireland - Solaris Software - Staff Engineer <Sean.Macroibea...@ireland.sun.com>
Subject Running the demos - CLASSPATH !!
Date Tue, 23 May 2000 10:52:02 GMT
Hi,

I've tried and failed to get the SOAP demos working. I've downloaded from
the alphaworks site.

I've not found the description very clear, so I've obviosuly screwed up. The steps I've taken
are as follows:

1. I've installed tomcat 3.1:
   - conf/server.xml
	<Context path="/ibm-soap" docBase="/export/home/XML/SOAP/IBM-SOAP-1.1/webapp"  debug="1"
reloadable="true" >
	</Context>

   - bin/startup.sh
      (After line 111)
       CLASSPATH=/export/home/XML/xml-xerces/java/tools/xerces-1.0.1.jar:${CLASSPATH}

   - Output from running startup.sh
    ./startup.sh
Guessing TOMCAT_HOME from tomcat.sh to ./..
Setting TOMCAT_HOME to ./..
Using classpath: 
/export/home/XML/xml-xerces/java/tools/xerces-1.0.1.jar:.:./../lib/ant.jar:./../lib/jasper.jar:./../lib/servlet.jar:./../lib/test:./../
lib/webserver.jar:./../lib/xml.jar
moe:/export/home/XML/jakarta-tomcat/bin 9 % Context log: path="/examples" Adding context path="/examples"
 docBase="webapps/examples"
Context log: path="" Adding context path=""  docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test"  docBase="webapps/test"
Set debug to 1
Context log: path="/ibm-soap" Adding context path="/ibm-soap"  docBase="/export/home/XML/SOAP/IBM-SOAP-1.1/webapp"
Starting tomcat. Check logs/tomcat.log for error messages 
Starting tomcat install="./.." home="/export/home/XML/jakarta-tomcat" 
classPath="/export/home/XML/xml-xerces/java/tools/xerces-1.0.1.jar:.:./../lib/ant.jar:./../lib/jasper.jar:./../lib/servlet.jar:./../lib
/test:./../lib/webserver.jar:./../lib/xml.jar"
Context log: path="/admin" Automatic context load docBase="/export/home/XML/jakarta-tomcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin"  docBase="/export/home/XML/jakarta-tomcat/webapps/admin"


2. Service Deployment

I invoked the IBM-SOAP admin directly using the pathname "file:/export/home/XML/SOAP/IBM-SOAP-1.1/webapp/index.html"
Based on the info. in DeploymentDescriptor.xml the fields were filled in as follows:

ID = urn:AddressFetcher
Scope = Application
Provider Class = demos.addressbook.AddressBook
Use Static Class = NO
Methods = getAddressFromName addEntry
Number of mappings: 2

Mapping Fields:

SOAP 
urn:ibm-soap-address-demo 
address 
demos.addressbook.Address 
com.ibm.soap.encoding.soapenc.BeanSerializer 
com.ibm.soap.encoding.soapenc.BeanSerializer

SOAP 
urn:ibm-soap-address-demo 
phone
demos.addressbook.PhoneNumber
com.ibm.soap.encoding.soapenc.BeanSerializer
com.ibm.soap.encoding.soapenc.BeanSerializer

3. Client Side:

CLASSPATH=/export/home/XML/xml-xerces/java/tools/xerces-1.0.1.jar:/export/home/XML/SOAP/IBM-SOAP-1.1/demos/addressbook:/export/home/XML
/SOAP/IBM-SOAP-1.1/lib/IBM-SOAP.jar:/export/home/XML/SOAP/IBM-SOAP-1.1/lib/smtp.jar:/export/home/XML/SOAP/IBM-SOAP-1.1/lib/xmisoap.jar:
/export/home/XML/SOAP/IBM-SOAP-1.1/lib/pop3.jar

When I invoked java demos.addressbook.GetAddress, it get the following unfound class error:

Exception in thread "main" java.lang.NoClassDefFoundError: demos/addressbook/GetAddress

I've tried various combinations of paths to the demos directories, but none succeed.

Any help on this would be appreciated.

Sean

----------------------------------------------------------
Sean MacRoibeaird
XML Technology Centre
Sun Microsystems,
East Point Business Park,
Dublin 3,
Ireland

Phone: x19173/+353 1 8199173
e-mail: sean.macroibeaird@ireland.sun.com


Mime
View raw message