Richard,
Any chance you could try with the latest 2.1.1-SNAPSHOT. In 2.1, we
found a bug where some of the jaxb customizations were not being
applied to the right nodes, and in some cases, not being applied at
all or being applied to multiple places. I've tried to fix them all,
but I'm not 100% sure. If you could try it, that would be great.
Another possibility with 2.1.1: I added a flag, -autoNameResolution,
that would automatically resolve name conflicts without a bindings
file. It would be nice if that could be tested with your schema as
well.
Dan
On Jun 2, 2008, at 8:54 AM, Shaw, Richard A wrote:
I've just upgraded to Apache CXF 2.1 and my WSDL file is no longer
being processed correctly.
The Datex schema file has an element called Comment inside another
element called Comment so with the Incubator CXF I created a binding
file to rename one of the instances 'TheComment'.
After the upgrade it gives the following error -
wsdl2java -b ./wsdl/CDA.xjb -verbose -d D:\Iona\workspace
\SubscriptionManager\build\src ./wsdl/CDA.wsdl
[java] wsdl2java - Apache CXF 2.1
[java] WSDLToJava Error: java.lang.IllegalArgumentException:
Illegal class inheritance loop. Outer class TheComment may not
subclass from inner class: TheComment
[java] org.apache.cxf.tools.common.ToolException:
java.lang.IllegalArgumentException: Illegal class inheritance loop.
Outer class TheComment may not subclass from inner class: TheComment
[java] at
org
.apache
.cxf
.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:
240)
[java] at
org
.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:
83)
[java] at
org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
[java] at
org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)
[java] Caused by: java.lang.IllegalArgumentException: Illegal
class inheritance loop. Outer class TheComment may not subclass
from inner class: TheComment
[java] at
com.sun.codemodel.JDefinedClass._extends(JDefinedClass.java:251)
[java] at
com.sun.tools.xjc.generator.bean.ImplStructureStrategy
$1._extends(ImplStructureStrategy.java:115)
[java] at
com
.sun
.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:217)
[java] at
com
.sun
.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:
174)
[java] at
com.sun.tools.xjc.model.Model.generateCode(Model.java:286)
[java] at
com
.sun
.tools
.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:246)
[java] at
org
.apache
.cxf
.tools
.wsdlto
.databinding.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:227)
[java] at
org
.apache
.cxf
.tools
.wsdlto.WSDLToJavaContainer.generateTypes(WSDLToJavaContainer.java:
536)
[java] at
org
.apache
.cxf
.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:
187)
[java] at
org
.apache
.cxf
.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:
232)
[java] ... 3 more
Does anybody know why ?
Sorry for the large attachment.
<<wsdl.zip>>
Richard Shaw
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
Richard Shaw
Technical Design Authority - Information Solutions Consultancy
Intelligent Transport Systems
Atkins Highways and Transportation
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
Tel: +44 (0) 1372 756407
Fax: +44 (0) 1372 740055
Mob: 07740 817586
E-mail: [EMAIL PROTECTED]
www.atkinsglobal.com/its
This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly
agreed in writing, nothing stated in this communication shall be
legally binding.
The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW. A list of wholly owned Atkins
Group companies registered in the United Kingdom can be found at: http://www.atkinsglobal.com/terms_and_conditions/index.aspx
.
P Consider the environment. Please don't print this e-mail unless
you really need to.
<wsdl.zip>
---
Daniel Kulp
[EMAIL PROTECTED]
http://www.dankulp.com/blog