You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Bruno Fischel <bf...@us.ibm.com> on 2002/05/17 01:48:31 UTC

NoSuchMethodError (just for my sample, the other are working)

Hello,
I have created a Java class that  I want to deploy as a webservice.
Basically, this class has two methods dealing with types String and
boolean.
I can deploy easily my class using either the SOAP admin page or the
command line.
I am using tomcat as web server and all the samples installed are working
fine, except my own webservice.
I wrote a simple client which just call the two methods exposed. But I
receive the following error:

Fault Code   = SOAP-ENV:Server.Exception:
Fault String = java.lang.NoSuchMethodError

I do the call through the SOAP RPC router servlet.
I check the classpath and everything seems to be fine.
I have check with a method which doesn't have any parameters and I get the
same result.
 Obviously, I checked that I use the same signature for the methods in my
service class and the call in my client class.

I will greatly appreciate if someone can help me on this topic.


Bruno


Re: NoSuchMethodError (just for my sample, the other are working)

Posted by Jacob Bowers <ja...@ezgov.com>.
Try moving a later version of an xml parser higher in your classpath.
xerces1_4_2.jar works.  Older versions can give you the NoSuchMethodError.

Bruno Fischel wrote:

> Hello,
> I have created a Java class that  I want to deploy as a webservice.
> Basically, this class has two methods dealing with types String and
> boolean.
> I can deploy easily my class using either the SOAP admin page or the
> command line.
> I am using tomcat as web server and all the samples installed are working
> fine, except my own webservice.
> I wrote a simple client which just call the two methods exposed. But I
> receive the following error:
>
> Fault Code   = SOAP-ENV:Server.Exception:
> Fault String = java.lang.NoSuchMethodError
>
> I do the call through the SOAP RPC router servlet.
> I check the classpath and everything seems to be fine.
> I have check with a method which doesn't have any parameters and I get the
> same result.
>  Obviously, I checked that I use the same signature for the methods in my
> service class and the call in my client class.
>
> I will greatly appreciate if someone can help me on this topic.
>
> Bruno


Re: NoSuchMethodError (just for my sample, the other are working)

Posted by Jacob Bowers <ja...@ezgov.com>.
Try moving a later version of an xml parser higher in your classpath.
xerces1_4_2.jar works.  Older versions can give you the NoSuchMethodError.

Bruno Fischel wrote:

> Hello,
> I have created a Java class that  I want to deploy as a webservice.
> Basically, this class has two methods dealing with types String and
> boolean.
> I can deploy easily my class using either the SOAP admin page or the
> command line.
> I am using tomcat as web server and all the samples installed are working
> fine, except my own webservice.
> I wrote a simple client which just call the two methods exposed. But I
> receive the following error:
>
> Fault Code   = SOAP-ENV:Server.Exception:
> Fault String = java.lang.NoSuchMethodError
>
> I do the call through the SOAP RPC router servlet.
> I check the classpath and everything seems to be fine.
> I have check with a method which doesn't have any parameters and I get the
> same result.
>  Obviously, I checked that I use the same signature for the methods in my
> service class and the call in my client class.
>
> I will greatly appreciate if someone can help me on this topic.
>
> Bruno