wood burning stoves 2.0*
The moose likes Web Services and the fly likes Web Service Client using IBM Web sphere JAX-WS  runtime Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service Client using IBM Web sphere JAX-WS  runtime Issue" Watch "Web Service Client using IBM Web sphere JAX-WS  runtime Issue" New topic
Author

Web Service Client using IBM Web sphere JAX-WS runtime Issue

Mohd Fuzail
Ranch Hand

Joined: Feb 20, 2002
Posts: 107
Objective
To create a java Web Service client using IBM Web sphere JAX-WS runtime to consume any web service. This client needs to be developed as utility project for a given Web Service and allows other application to invoke that particular web service

Tool Used
RAD 7.0.0.7 (with Web Service Feature Pack )
WAS 6.1

Problem
After creating Java client from RAD using IBM Web sphere JAX-WS runtime as a Java Utility Project, whenever I am invoking the Web Service using this client I am getting following error

Exception in thread "main" java.lang.NoSuchMethodError: javax/wsdl/Operation.getExtensibilityElements()Ljava/util/List;
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:988)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:428)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:350)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:303)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.buildAxisServiceFromWSDL(EndpointDescriptionImpl.java:834)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.setupAxisService(EndpointDescriptionImpl.java:702)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:222)
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:187)
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.updateEndpointDescription(ServiceDescriptionImpl.java:314)
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.updateEndpoint(DescriptionFactoryImpl.java:228)
at org.apache.axis2.jaxws.description.DescriptionFactory.updateEndpoint(DescriptionFactory.java:102)
at org.apache.axis2.jaxws.spi.ServiceDelegate.getPort(ServiceDelegate.java:242)
at javax.xml.ws.Service.getPort(Service.java:41)
at org.example.person.PersonService.getPersonPort(PersonService.java:50)
at org.example.person.Person_portProxy$Descriptor.initCommon(Person_portProxy.java:31)
at org.example.person.Person_portProxy$Descriptor.<init>(Person_portProxy.java:22)
at org.example.person.Person_portProxy.<init>(Person_portProxy.java:69)
at test.ws.client.ProxtTestClient.main(ProxtTestClient.java:72)


Research
Goggled this error, appears issue with the usage of incorrect version of wsdl4j.jar file
Tried replacing wsdl4j.jar (version wsdl4j-1_6_2 latest) with the available wsdl4j.jar files in RAD, no success
Replaced wsdl4j-1.5.1.jar with latest jar, no success
Comprehensive error resolution is provided at http://markmail.org/message/gktovd4fbwjqs65t but nothing is working as of now
http://ws.apache.org/muse/docs/2.2.0/manual/troubleshooting/wsdl4j-version-on-websphere.html talks about making following changes if application which is hitting this issue id deployed over WAS (Classes loaded with application class loader first and Single class loader for application ), but in our case this is a utility project

WSDL FILE



Being defeated is often a temporary condition. Giving up is what makes it permanent.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Service Client using IBM Web sphere JAX-WS runtime Issue
 
Similar Threads
jax-ws clients and jboss
is it right way to send exception to client
WSDL issues
Calling a web service in Axis2
Axis WSDL2Java's Error: reference but not defined