 |
|
 |
 |
|
 |
 |
| Author |
Message |
|
|
Post subject: Problem creating a JAX-WS web service
Posted: Feb 12, 2010 - 03:46 PM
|
|
Veteran Member


Joined: Jul 01, 2006
Posts: 126
|
|
I used the WSDL for a widely used OFAC checking service to try to generate my own web server. I'm using MyEclipse 7.5 and used the JAX-WS top-down wizard.
My first problem was that the generated server didn't have all the necessary jars and threw missing class errors. I found versions of jaxb-impl.jar and jaxws-rt.jar and that stopped the missing class errors. Why are these jars not automatically included?
Now when I try to start the server it throws startup error:
com.sun.xml.ws.server.ServerRtException: Cannot generate WSDL for binding "http://www.w3.org/2003/05/soap/bindings/HTTP/"
at com.sun.xml.ws.server.EndpointFactory.generateWSDL(EndpointFactory.java:415)
at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:196)
at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:108)
... 24 more
The specified binding is not anything in the WSDL I'm using or my application.
A google search is not very helpful, but the problem seems to be related to the attempt by the server to generate the WSDL for the site.
Any idea what is wrong and how to fix it? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 17, 2010 - 09:34 AM
|
|
Moderator


Joined: Aug 21, 2004
Posts: 2339
|
|
flawlor,
JAX-WS is part of the JavaEE5 specification, so when deploying to a compliant Java EE 5 server, these JARs are not required. Some servers like Jetty and Tomcat are not fully compliant, in which case you need to add the JARs to your classpath.
Please see section 6 of our tutorial for more details:
http://www.myeclipseide.com/documentation/quickstarts/webservices_jaxws/
As far as the server startup is concerned, when you generated the service, did you choose to copy the WSDL into your project? |
_________________ Brian
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 17, 2010 - 03:19 PM
|
|
Veteran Member


Joined: Jul 01, 2006
Posts: 126
|
|
Thanks for the response and the pointer to the tutorial.
I recreated the web service using the jars from MyEclipse, but I get the same error on startup.
I created the project top-down from the WSDL which I had copied into the root of the web project. It does not contain the text "http://www.w3.org/2003/05/soap/bindings/HTTP/".
I don't remember seeing any option about copy the WSDL. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Feb 26, 2010 - 04:15 PM
|
|
Veteran Member


Joined: Jul 01, 2006
Posts: 126
|
|
Does anyone have any suggestions on what the problem is here or how to isolate it? |
|
|
| |
|
|
|
 |
|
|
| |
|
|
 |
|
 |
|
|
|
 |