cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benny <coffman...@gmail.com>
Subject cxf to compile WSDL in eclipse Dynamic Web Project
Date Mon, 13 Feb 2012 12:52:53 GMT
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.

Mime
View raw message