cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <gma...@talend.com>
Subject Re: cxf to compile WSDL in eclipse Dynamic Web Project
Date Mon, 13 Feb 2012 13:09:37 GMT
Pardon the non-answer, but what you're doing looks painful.  Why not use 
Maven to generate your SOAP client[1] (it will handle the dependencies 
for you) and then Maven's "mvn eclipse:eclipse" command to import it 
into your IDE? You can get that done in the 20-30 minutes it would take 
you to get an answer to the below question anyway.

Incidentally, please use the cxf user's mailing list for these 
questions.  The dev list is for internal development of CXF itself.

Regards,
Glen

[1] http://www.jroller.com/gmazza/entry/soap_client_tutorial


On 02/13/2012 07:52 AM, Benny wrote:
> When I try and use the built in /web client/ to build some code out using a
> WSDL and CXF I get the following errors (see below). I have read other posts
> and they said I needed to put the Jaxb and jaxws api in the endorsed folder.
> I added both of those, however I still get the error. I tried literally
> adding every jar jaxws in the folder and it still didn't work (see screen
> shot)
>
>
> http://cxf.547215.n5.nabble.com/file/n5479086/Screen_shot_2012-02-13_at_7.51.52_AM.png
>
>
> WSDLToJava Error: java.lang.reflect.UndeclaredThrowableException
>
> org.apache.cxf.tools.common.ToolException:
> java.lang.reflect.UndeclaredThrowableException
> 	at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:294)
> 	at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184)
> Caused by: java.lang.reflect.UndeclaredThrowableException
> 	at $Proxy45.required(Unknown Source)
> 	at
> com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:202)
> 	at
> com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:161)
> 	at
> com.sun.tools.xjc.generator.bean.field.AbstractListField.generate(AbstractListField.java:129)
> 	at
> com.sun.tools.xjc.generator.bean.field.UntypedListField.(UntypedListField.java:112)
> 	at
> com.sun.tools.xjc.generator.bean.field.UntypedListFieldRenderer.generate(UntypedListFieldRenderer.java:77)
> 	at
> com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:82)
> 	at
> com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:774)
> 	at
> com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:555)
> 	at com.sun.tools.xjc.generator.bean.BeanGenerator.(BeanGenerator.java:258)
> 	at
> com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:166)
> 	at com.sun.tools.xjc.model.Model.generateCode(Model.java:290)
> 	at
> com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:283)
> 	at
> com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:94)
> 	at
> org.apache.cxf.tools.wsdlto.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:391)
> 	at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:591)
> 	at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:243)
> 	at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:138)
> 	at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:286)
> 	... 4 more
> Caused by: java.lang.NoSuchMethodException:
> javax.xml.bind.annotation.XmlElementRef.required()
> 	at java.lang.Class.getDeclaredMethod(Class.java:1937)
> 	at
> com.sun.codemodel.TypedAnnotationWriter.invoke(TypedAnnotationWriter.java:112)
> 	... 23 more
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/cxf-to-compile-WSDL-in-eclipse-Dynamic-Web-Project-tp5479086p5479086.html
> Sent from the cxf-issues mailing list archive at Nabble.com.


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza


Mime
View raw message