> -----Original Message-----
> From: Albert Yu [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, February 18, 2002 8:18 AM
> To: 'Soap-User (E-mail)
> Subject: ServiceManagerClient throws exception
> 
> 
> Hi,
> 
> I want to try ServiceManagerClient, but I failed, what is 
> wrong?
> 
>     <path id="project.lib.path">
>       <fileset dir="${lib.dir}">
>         <include name="mail.jar" />
>         <include name="activation.jar" />
>         <include name="jaxp.jar" />
>         <include name="parser.jar" />
>         <include name="soap.jar" />
>       </fileset>
>     </path>
> 
>   <target name="manager">
>         <java 
> classname="org.apache.soap.server.ServiceManagerClient"
>           fork="yes"
>           classpathref = "project.lib.path"
>           >
>           <arg value = 
> "http://sun02:4040/soap/servlet/rpcrouter"/>
>           <arg value = "list"/>
>         </java>
>   </target>
> 
> 
> "ant manager" command got this exception: (What is wrong?)
> 
> 
> manager:
>      [java] java.lang.NoSuchMethodError
>      [java]     at 
> org.apache.soap.util.xml.QName.<init>(QName.java:80)

The method that is missing has to do with namespaces. Your
compiler is finding an older XML parser before it finds the
one that SOAP uses. Probably that jaxp.jar and parser.jar
are old.


[EMAIL PROTECTED]
Author of Soap Programming with Java - Sybex; ISBN: 0782129285




Reply via email to