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 Pascal Miquet <p....@hafiba.fr> on 2003/08/05 10:37:32 UTC

Testing SOAP Samples

Hello,

I've installed SOAP 2.3.1 on APACHE/TOMCAT 4.1.27
Accessing to http://localhost:8090/soap is correct.
Using the testit.sh (after edition of 8080 port to my 8090) let deploy
the Addressbook for example, but accessing to 


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

give me the following exception:

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

I think I have to add to CLASSPATH the location of JAVA classes, but I
wonder where this have to be added ?

Thanks for your help.
Regards
Pascal Miquet



Re: Testing SOAP Samples

Posted by Pascal Miquet <p....@hafiba.fr>.
Hy scott this solved my trouble.

But actually I wonder what kind of code is developped on the server
part, rather than client's part.

Do you have some good links to learn more ?

Regards
Pascal Miquet

Le mar 05/08/2003 à 13:43, Scott Nichol a écrit :
> It works without making a jar.  If you look at the client-side installation instructions in the documentation (http://ws.apache.org/soap/docs/install/index.html), it specifies that, if you have installed Apache SOAP to /foo/soap-2_3, to run the samples you add /foo/soap-2_3 to your classpath.  Do *not* try to add /foo/soap-2_3/samples!  You can see in the source that the addressbook code is all in samples.addressbook.
> 
> Scott Nichol
> 



Re: Testing SOAP Samples

Posted by Scott Nichol <sn...@scottnichol.com>.
It works without making a jar.  If you look at the client-side installation instructions in the documentation (http://ws.apache.org/soap/docs/install/index.html), it specifies that, if you have installed Apache SOAP to /foo/soap-2_3, to run the samples you add /foo/soap-2_3 to your classpath.  Do *not* try to add /foo/soap-2_3/samples!  You can see in the source that the addressbook code is all in samples.addressbook.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.

----- Original Message ----- 
From: "Pascal Miquet" <p....@hafiba.fr>
To: <so...@ws.apache.org>
Sent: Tuesday, August 05, 2003 7:00 AM
Subject: Re: Testing SOAP Samples


Thank's for your reply.

I've tried to add to my classpath the current location of JAVA classes.
Do I have to archive JAVA classes into addressbook.jar and add to my
client CLASSPATH=$CLASSPATH:/The/Path/To/JAR/addressbook.jar ?
Should it works with path to classes without making the JAR file ?

Thanks for your help.


Le mar 05/08/2003 à 12:41, Scott Nichol a écrit :
> The error is coming from the client you are invoking, not the server.  Therefore, you must update the CLASSPATH in your client's environment.
> 
> Scott Nichol
> 
> Do not send e-mail directly to this e-mail address,
> because it is filtered to accept only mail from
> specific mail lists.
> ----- Original Message ----- 
> From: "Pascal Miquet" <p....@hafiba.fr>
> To: <so...@ws.apache.org>
> Sent: Tuesday, August 05, 2003 4:37 AM
> Subject: Testing SOAP Samples
> 
> 
> > Hello,
> > 
> > I've installed SOAP 2.3.1 on APACHE/TOMCAT 4.1.27
> > Accessing to http://localhost:8090/soap is correct.
> > Using the testit.sh (after edition of 8080 port to my 8090) let deploy
> > the Addressbook for example, but accessing to 
> > 
> > 
> > java samples.addressbook.GetAddress
> > http://localhost:8090/soap/servlet/rpcrouter "John B. Good"
> > 
> > give me the following exception:
> > 
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > samples/addressbook/GetAddress
> > 
> > I think I have to add to CLASSPATH the location of JAVA classes, but I
> > wonder where this have to be added ?
> > 
> > Thanks for your help.
> > Regards
> > Pascal Miquet
> > 
> > 
> > 
-- 
Pascal MiQUET
Responsable Developpement
Téléphone: +33 1 40 89 98 98
Cellulaire: +33 6 60 58 55 77



Re: Testing SOAP Samples

Posted by Pascal Miquet <p....@hafiba.fr>.
Thank's for your reply.

I've tried to add to my classpath the current location of JAVA classes.
Do I have to archive JAVA classes into addressbook.jar and add to my
client CLASSPATH=$CLASSPATH:/The/Path/To/JAR/addressbook.jar ?
Should it works with path to classes without making the JAR file ?

Thanks for your help.


Le mar 05/08/2003 à 12:41, Scott Nichol a écrit :
> The error is coming from the client you are invoking, not the server.  Therefore, you must update the CLASSPATH in your client's environment.
> 
> Scott Nichol
> 
> Do not send e-mail directly to this e-mail address,
> because it is filtered to accept only mail from
> specific mail lists.
> ----- Original Message ----- 
> From: "Pascal Miquet" <p....@hafiba.fr>
> To: <so...@ws.apache.org>
> Sent: Tuesday, August 05, 2003 4:37 AM
> Subject: Testing SOAP Samples
> 
> 
> > Hello,
> > 
> > I've installed SOAP 2.3.1 on APACHE/TOMCAT 4.1.27
> > Accessing to http://localhost:8090/soap is correct.
> > Using the testit.sh (after edition of 8080 port to my 8090) let deploy
> > the Addressbook for example, but accessing to 
> > 
> > 
> > java samples.addressbook.GetAddress
> > http://localhost:8090/soap/servlet/rpcrouter "John B. Good"
> > 
> > give me the following exception:
> > 
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > samples/addressbook/GetAddress
> > 
> > I think I have to add to CLASSPATH the location of JAVA classes, but I
> > wonder where this have to be added ?
> > 
> > Thanks for your help.
> > Regards
> > Pascal Miquet
> > 
> > 
> > 
-- 
Pascal MiQUET
Responsable Developpement
Téléphone: +33 1 40 89 98 98
Cellulaire: +33 6 60 58 55 77


Re: Testing SOAP Samples

Posted by Scott Nichol <sn...@scottnichol.com>.
The error is coming from the client you are invoking, not the server.  Therefore, you must update the CLASSPATH in your client's environment.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Pascal Miquet" <p....@hafiba.fr>
To: <so...@ws.apache.org>
Sent: Tuesday, August 05, 2003 4:37 AM
Subject: Testing SOAP Samples


> Hello,
> 
> I've installed SOAP 2.3.1 on APACHE/TOMCAT 4.1.27
> Accessing to http://localhost:8090/soap is correct.
> Using the testit.sh (after edition of 8080 port to my 8090) let deploy
> the Addressbook for example, but accessing to 
> 
> 
> java samples.addressbook.GetAddress
> http://localhost:8090/soap/servlet/rpcrouter "John B. Good"
> 
> give me the following exception:
> 
> Exception in thread "main" java.lang.NoClassDefFoundError:
> samples/addressbook/GetAddress
> 
> I think I have to add to CLASSPATH the location of JAVA classes, but I
> wonder where this have to be added ?
> 
> Thanks for your help.
> Regards
> Pascal Miquet
> 
> 
>