• Post Reply Bookmark Topic Watch Topic
  • New Topic

Throwing exceptions in a web service

 
Ani gh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to call a method in my SOAP web service, and my method throws some custom exceptions defined in an exception class.
My web service works correctly when I launched it without exceptions, but when I add
my exceptions and I try to run my application,an error is displayed :"The module has not been deployed.
See the server log for details."
I tried to resolve my problem but I can't found how to call a method throwing exceptions, in a web service.
Can you help me please?
This is my Web service code:


This is my function that I call in the web service as expliqued in the post :


and this is my exception class :
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch. Please post the details from the server log.
 
Ani gh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks! these are messages from my Apache Tomcat log:


 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your custom exception class is not correctly implemented. Check this tutorial
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!