Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Service unavailable for jax-ws webservice

 
ratna sargurp
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a JAX-WS webservice that I have deployed to a Windows 2003 server. I have tomcat 7 running on that server, and have deployed my web service to Tomcat 7. I have included the necessary JAX-WS jar files on tomcat.

I have a web page that is trying to access the web service. But I keep getting a 'Service Unavailable' error message when I try to access my service.

What am I doing wrong here? Do I need to tell Tomcat 7 about my webservice explicitly? I have configured the sunjaxws.xml and web.xml for tomcat.

Any help is appreciated.

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Service unavailable probably means that the web service failed to initialize correctly.

See javax.servlet.UnavailableException

If you are using MS Explorer web browser you me be able to get a more informative message by turning off the "friendly" HTTP error reporting.

What do the log files say about this?

Bill

 
ratna sargurp
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error in the logs:
Unable to instantiate service proxy. Check Service Registry Configuration for correct implementation class.

I have an implementation class. What is this pointing to?
 
ratna sargurp
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed my implementation class but now I get this message:

: Unable to instantiate service proxy. Check Service Registry Configuration for correct implementation class

I am not able to figure out if it is an issue with the client or the web service.

Any guidance is appreciated.
 
ratna sargurp
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. I am figuring this out slowly. But I need some help in understanding this. I have a web service that I have published. But the client side cannot get to it.

So,how do I get the client to talk to my service? Do I have to run the wsimport tool? I did and it generated some java files. Now am I supposed to copy this somewhere? Shouldnt the client side of the code be doing that?

Please help me understand this.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But the client side cannot get to it.

What does this mean? TellTheDetails.
 
ratna sargurp
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, there is a web app that is calling the web service. But they get this error "Unable to instantiate proxy".

So, I am not sure if there is something I am missing in my webservice deployment or if the web app side had to generate something. Basically, how can the webapp talk to my web service?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you ever successfully accessed the WS so you know that it works in principle? When that error message is shown, is there a simultaneous error in the WS logs?
 
ratna sargurp
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. I can access the service and the wsdl.
 
ratna sargurp
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. I tested my webservice in soap:ui and it gives me this response.

<faultstring>Not implemented yet.</faultstring>

Here is m wsdl:
<message name="getISBNCode">
<part element="tns:getISBNCode" name="parameters"/>
</message>
<message name="getResponse">
<part element="tns:getResponse" name="parameters"/>
</message>
<message name="IOException">
<part element="tns:IOException" name="fault"/>
</message>
<message name="ParserConfigurationException">
<part element="tns:ParserConfigurationException" name="fault"/>
</message>
<message name="SAXException">
<part element="tns:SAXException" name="fault"/>
</message>
<portType name="RetrieveData">
<operation name="getISBNCode">
<input message="tns:getISBNCode"/>
<output message="tns:getResponse"/>
<fault message="tns:IOException" name="IOException"/>
<fault message="tns:ParserConfigurationException" name="ParserConfigurationException"/>
<fault message="tns:SAXException" name="SAXException"/>
</operation>
</portType>
<binding name="RetrieveDataPortBinding" type="tns:RetrieveData">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getISBNCode">
<soapperation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
<fault name="IOException">
<soap:fault name="IOException" use="literal"/>
</fault>
<fault name="ParserConfigurationException">
<soap:fault name="ParserConfigurationException" use="literal"/>
</fault>
<fault name="SAXException">
<soap:fault name="SAXException" use="literal"/>
</fault>
</operation>
</binding>
<service name="RetrieveDataService">
<port binding="tns:RetrieveDataPortBinding" name="RetrieveDataService">
<soap:address location="http://localhost:8080/DataLookup/RetrieveDataService"/>
</port>
</service>

What am I missing? I am trying to access getISBNCode which takes two string argumentsand responds with another string.
 
ratna sargurp
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody please help me here?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic