cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdmichal <>
Subject Re: WSDL2Java and jaxb binding for element
Date Wed, 22 Jul 2009 16:32:32 GMT

Just to be clear: Where are you introducing the 'version' element? The fact
that the first two work OK leads me to think it should probably be on the
schemaBindings element, or it's parent. Try those and see how it goes?

Also, I'm not really too familiar with the use of elementName. When I wanted
to do a similar task in a JAXB binding file (naming a generated type to a
particular class name), mine looked like this:

<jaxb:bindings node="xsd:element[@name='info']/xsd:complexType">
    <jaxb:class name="InfoType"/>

Maybe you can try using jaxb:class inside the schemaBinding instead and see
what happens?


Samuel Liard wrote:
> I have the error :
> Thrown by JAXB : JAXB version attribute must be present
> And when I add jxb:version="2.1" in first jaxws:bindings, I have the error
> :
> Attribute "version" bound to namespace ""
> was already specified for element "element".
> It's crazy !
> (It is the same with cxf version 2.1.4 and 2.2.2. I use maven dependency)
> I just want a nice Java class Name... Without binding, the class name of
> this element is : and I want :
> I need your help ;)
> Thanks
> Samuel

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message