Hi Dan,
Thanks for the reply. It was the endorsed folder in the JRE that was
getting in the way. Thanks again!
Gabo
Daniel Kulp wrote:
From that stack trace, you aren't using CXF. You are using the JAX-WS
reference implementation. Double check to make sure the proper JAX-WS
runtime is what's found on the classpath.
Dan
On Tue September 1 2009 3:50:23 am Gabo Manuel wrote:
Hi All,
I generated client code using wsdl2java tool using the following command:
wsdl2java -client http://domain/service?wsdl
The service is also using CXF. But as I try to create the client service:
Service_Service service = new Service_Service(new
URL("http://domain/service?wsdl");
I get the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError:
com/sun/xml/stream/buffer/XMLStreamBuffer
at
com.sun.xml.ws.api.addressing.WSEndpointReference.<init>(WSEndpointReferenc
e.java:174) at
com.sun.xml.ws.api.addressing.WSEndpointReference.<init>(WSEndpointReferenc
e.java:166) at
com.sun.xml.ws.api.addressing.AddressingVersion.<init>(AddressingVersion.ja
va:436) at
com.sun.xml.ws.api.addressing.AddressingVersion.<init>(AddressingVersion.ja
va:67) at
com.sun.xml.ws.api.addressing.AddressingVersion$1.<init>(AddressingVersion.
java:146) at
com.sun.xml.ws.api.addressing.AddressingVersion.<clinit>(AddressingVersion.
java:69) at
com.sun.xml.ws.wsdl.parser.MemberSubmissionAddressingWSDLParserExtension.po
rtTypeOperationInput(MemberSubmissionAddressingWSDLParserExtension.java:90)
at
com.sun.xml.ws.wsdl.parser.DelegatingParserExtension.portTypeOperationInput
(DelegatingParserExtension.java:79) at
com.sun.xml.ws.wsdl.parser.WSDLParserExtensionFacade.portTypeOperationInput
(WSDLParserExtensionFacade.java:110) at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortTypeOperationInput(Ru
ntimeWSDLParser.java:734) at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortTypeOperation(Runtime
WSDLParser.java:702) at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortType(RuntimeWSDLParse
r.java:676) at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.ja
va:319) at
com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:1
46) at
com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:26
5) at
com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:228)
at
com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:176)
at
com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:104
) at javax.xml.ws.Service.<init>(Service.java:56)
I already added streambuffer-0.9.jar which contains the said class to
the build path, but the problem persists. Any ideas?
Gabo
------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.409 / Virus Database: 270.13.75/2340 - Release Date: 09/01/09 20:03:00