Hi Isabelle,
The com/sun/xml/rpc/client/StubBase file lives in the jaxrpc-ri.jar
file, which is included in the jwsdp-jars property in the ant build.xml
file. I wonder, though, if the clib property is set correctly.
Should it start with c:\jwsdp-1_0-ea2?
Dale
>Delivered-To: jaxrpc-interest_at_java.sun.com
>Mime-Version: 1.0
>Date: Fri, 3 May 2002 10:16:42 +0200
>From: Isabelle Gheysens <i.gheysens_at_ENERGYICT.COM>
>Subject: can't run client
>To: JAXRPC-INTEREST_at_JAVA.SUN.COM
>
>Hello,
>
>I managed to get everything compiled...
>but when I want to run the client I get the following error:
>
>run:
> [java] java.lang.NoClassDefFoundError: com/sun/xml/rpc/client/StubBase
> [java] at java.lang.ClassLoader.defineClass0(Native Method)
> [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
> [java] at
>java.security.SecureClassLoader.defineClass(SecureClassLoader
>.java:123)
> [java] at
>java.net.URLClassLoader.defineClass(URLClassLoader.java:246)
> [java] at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
> [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
> [java] at java.security.AccessController.doPrivileged(Native Method)
> [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> [java] at
>sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
>
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
> [java] at
>java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
>
> [java] Exception in thread "main"
> [java] Java Result: 1
>
>this is how my ant script looks like:
>
>...
>
><target name="init">
> ...
> <property name ="clib" value="c:/jwsdp/common/lib" />
> <property name ="jwsdp-jars" value =
>"${clib}/jaxrpc-ri.jar:${clib}/jaxrpc-api.jar:${clib}/activation.jar:${clib}
>/dom4j.jar:${clib}/jaxm-api.jar:${clib}/jaxm-client.jar:${clib}/log4j.jar:${
>clib}/mail.jar:${clib}/xalan.jar:${clib}/xerces.jar:${clib}/jaxp-api.jar" />
> <property name ="elib" value="c:/jwsdp/common/endorsed" />
> <property name ="jaxp-jars"
>value="${elib}/dom.jar:${elib}/sax.jar:${elib}/xalan.jar:${elib}/xercesImpl.
>jar:${elib}/xsltc.jar" />
></target>
>...
>
>
><target name="run">
> <java
> fork="on"
> classpath="${jwsdp-jars}:${jaxp-jars}:dist/soapclient.jar"
> classname="com.energyict.eiserver.gui.HelloClient" >
> <arg value="${endpoint}" />
> </java>
> </target>