• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error!  RSS feed

 
Kiran Kumar
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folks,

I have a simple SOAP application. The server has got two methods
1. public int add(int p1, int p2)
and
2. public int subtract(int p1, int p2)
The deploymentdescriptor file is
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
id="urn njavaserver">
<isd rovider type="java"
scope="Application"
methods="add subtract">
<isd:java class="CalcService"/>
</isd rovider>
<isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>

and in the CalcClient.java file,
I have
call.setMethodName("subtract");
I don't have any problem running this sample program which was listed in Onjava.com's tutorials. But, when I change the "subtract" method to "subtracts", and change "subtract" to "subtracts" in deploymentdescriptor and CalcClient.java, the program won't run.
I get the following error
The call failed:
Fault Code = SOAP-ENV:Server
Fault String = Exception while handling service request: CalcService.subtracts(int,int) -- no signature match
Can someone tell me where I am going wrong?
Thanks,
Regards,
Kiran
 
Kiran Kumar
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I figured it out!
I restarted my Tomcat server! and it works.
Can anyone tell me why this happened?
Does Tomcat keeps a cache?
Regards,
Kiran
 
kundi kx
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat load library classes on start. So if you have your class or jar in common/lib, Tomcat won't reference it until restart.
It may explain your case, but just a shot.
-kundi
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!