nowhere... If a release doesn't work, why do they release it?? Very ba
documentation that says nothing about running clients and problems that
one may run into ...
Thanx for volunteering to write that doc ;-)...

Problem seems to e with the way you set the classpath...

Seems you are using the 1.1 release which we did today morning ..
You can have a look inside the ANT build files of the samples(ex:mtom,
pojo..) which comes with the axis2 1.1 binary distro to get an idea
about how to set the classpath and how to run the clients...

Thilina


I don't knwo how a class can compile, but can't run because
org.apache.axis2.client.Stub doesn't exit? I can't find where the Jar
that contains this class is. Anybody knows? I have added all the jars
from axis2\lib to the jar directory of java, but it doesn't help...

Please, I need help, desparately ;-)

D:\PhD\MOD250-JWS\axis2-bin\samples\Axis2SampleDocLitClient\build\classes>java
-
cp .;org\apache\axis2\userguide;..\..\..\lib
org.apache.axis2.userguide.TestCli
ent
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/axis2/clie
nt/Stub
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

D:\PhD\MOD250-JWS\axis2-bin\samples\Axis2SampleDocLitClient\build\classes>

adrian rutle skrev:
> Hi
>
> D:\PhD\MOD250-JWS\axis2-bin\samples\Axis2SampleDocLitClient\build\classes>java
> -
> cp
> .:D:\PhD\MOD250-JWS\axis2-bin\samples\Axis2SampleDocLitClient\build\lib:D:\Ph
>
> 
D\MOD250-JWS\axis2-bin\lib:D:\PhD\MOD250-JWS\axis2-bin\samples\Axis2SampleDocLit
>
> Client\build\classes\org\apache\axis2\userguide
> org.apache.axis2.userguide.TestClient
>
>
> Gives:
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/axis2/user
> guide/TestClient
>
>
>
> I am sure that the class file TestClient exists in that folder.
>
> package org.apache.axis2.userguide;
> import org.apache.axis2.userguide.*;
> import org.apache.axis2.userguide.axis2sampledoclit.*;
> import org.apache.axis2.userguide.axis2sampledoclit.impl.*;
>
> public class TestClient
> {
>    public static void main(String []args){
>        System.out.println("\t=== we try to run our TestClient");
>              try
>        {
>            org.apache.axis2.userguide.Axis2SampleDocLitServiceStub stub
>                = new
> org.apache.axis2.userguide.Axis2SampleDocLitServiceStub(null,
>
> "http://localhost:8080/axis2/services/Axis2SampleDocLitService";);
>            //Create the request document to be sent.
>
> org.apache.axis2.userguide.axis2sampledoclit.EchoStringDocument reqDoc =
>
> 
org.apache.axis2.userguide.axis2sampledoclit.EchoStringDocument.Factory.newInstance();
>
>
> org.apache.axis2.userguide.axis2sampledoclit.EchoStringDocument.EchoString
> es = reqDoc.getEchoString();
>            es.setEchoStringParam("Axis2 Echo");
>            //invokes the Web service.
>
> org.apache.axis2.userguide.axis2sampledoclit.EchoStringResponseDocument
> resDoc =
>                stub.echoString(reqDoc);
>
> System.out.println(resDoc.getEchoStringResponse().getEchoStringReturn());
>        }
>        catch (java.rmi.RemoteException e)
>        {
>            e.printStackTrace();
>        }
>          }
>
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to