cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: [JAX-WS][CXF-2.2.3][Client] Unable to instantiate generated client
Date Tue, 01 Sep 2009 13:26:22 GMT

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

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message