Hello,

I'm using CXF 2.5.2.
When I try to run wsdl2Java against this WSDL (
http://cooperazione.sian.it/wspdd/services/AllineamentoGIS?wsdl) I get this
following error:
WSDLToJava Error: Thrown by JAXB:
Thrown by JAXB:
Two declarations cause a collision in the ObjectFactory class.
 at line 21 column 3 of schema
file:/tmp/tempdir769259763399432743.tmp/feature.xsd

(Related to above error) This is the other declaration.
 at line 20 column 3 of schema
file:/tmp/tempdir769259763399432743.tmp/feature.xsd

org.apache.cxf.tools.common.ToolException: Thrown by JAXB:
Thrown by JAXB:
Two declarations cause a collision in the ObjectFactory class.
 at line 21 column 3 of schema
file:/tmp/tempdir769259763399432743.tmp/feature.xsd

(Related to above error) This is the other declaration.
 at line 20 column 3 of schema
file:/tmp/tempdir769259763399432743.tmp/feature.xsd

(...)

Caused by: com.sun.istack.SAXParseException2: Two declarations cause a
collision in the ObjectFactory class.

The above WSDL refers to http://schemas.opengis.net/gml/2.0.0/feature.xsd.
Lines 20 and 21 of this schema relate to the following:

 <element name="_geometryProperty" type="gml:GeometryPropertyType"
abstract="true"/>
 <element name="geometryProperty" type="gml:GeometryPropertyType"/>

Could you please help me in getting me wsdl2Java work in this case?

Thanks,
~pasquale

Reply via email to