• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Error!

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic