You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Thomas Manson <de...@gmail.com> on 2015/09/03 12:45:29 UTC
CXF 2.7.17 or 3.1.2 : Unable to generate a property name from a model
group. A customization is required.
Hi CXF mailing list,
I'm trying to generate the java client for WSDL from a proprietary product
(so quite no ability to change the WSDL without loosing support from the
editor).
With the last update of the product, I get the following error
*"Unable to generate a property name from a model group. A customization is
required."*
I've tried with CXF 2.7.11, 2.7.17 and 3.1.2 to see if newer version of CXF
would handle this issue, but it seems it doesn't.
If you want to give it a try, the WSDL (there's several of them) :
https://docs.tibco.com/pub/amx-bpm/3.1.0/doc/html/bpmhelp/public_api/public_api.zip
and my previous successful POM :
http://mansonthomas.com/TIBCO/CXF/pom-2.7.11.xml
and with the updated versions of CXF :
http://mansonthomas.com/TIBCO/CXF/pom.xml
the maven output with the latest version of CXF :
http://mansonthomas.com/TIBCO/CXF/maven.log
Any idea of what kind of customization is required ? Any comprehensive
tutorial ?
Also the fact that I'm not developper of the product, I've no clue of the
content of the WSDL/XSD...
Here is the start of the stack trace:
[ERROR]
/Users/tmanson/Dropbox/tibco2/AMXBPM-3.1-WS-Client-CXF2.7.11/src/main/resources/processManagement.xsd
[1439:3]: Unable to generate a property name from a model group. A
customization is required.
com.sun.istack.SAXParseException2; systemId:
file:/Users/tmanson/Dropbox/tibco2/AMXBPM-3.1-WS-Client-CXF2.7.11/src/main/resources/processManagement.xsd;
lineNumber: 1439; columnNumber: 3; Unable to generate a property name from
a model group. A customization is required.
at com.sun.tools.xjc.ErrorReceiver.error(ErrorReceiver.java:86)
at com.sun.tools.xjc.reader.xmlschema.ErrorReporter.error(
ErrorReporter.java:84)
at com.sun.tools.xjc.reader.xmlschema.ParticleBinder.computeLabel(
ParticleBinder.java:168)
at
com.sun.tools.xjc.reader.xmlschema.DefaultParticleBinder$Checker.computeLabel(
DefaultParticleBinder.java:317)
at com.sun.tools.xjc.reader.xmlschema.DefaultParticleBinder$Checker.mark(
DefaultParticleBinder.java:227)
at
com.sun.tools.xjc.reader.xmlschema.DefaultParticleBinder$Checker.particle(
DefaultParticleBinder.java:164)
at com.sun.tools.xjc.reader.xmlschema.DefaultParticleBinder.checkCollision(
DefaultParticleBinder.java:104)
at com.sun.tools.xjc.reader.xmlschema.DefaultParticleBinder.checkFallback(
DefaultParticleBinder.java:93)
at com.sun.tools.xjc.reader.xmlschema.ct.FreshComplexTypeBuilder$1.particle(
FreshComplexTypeBuilder.java:89)
at com.sun.xml.xsom.impl.ParticleImpl.visit(ParticleImpl.java:120)
Also, in Eclipse, on the pom.xml file, execution element, I get the
following/same error:
Execution generate-sources__wsdl2java of goal
org.apache.cxf:cxf-codegen-plugin:3.1.2:wsdl2java failed:
file:/Users/tmanson/Dropbox/tibco2/AMXBPM-3.1-WS-
Client-CXF2.7.11/src/main/resources/processManagement.xsd [1439,3]: Unable
to generate a property name from a model group. A customization is
required. file:/
Users/tmanson/Dropbox/tibco2/AMXBPM-3.1-WS-Client-CXF2.7.11/src/main/resources/processManagement.xsd
[1439,3]: Unable to generate a property name from
a model group. A customization is required.
(org.apache.cxf:cxf-codegen-plugin:3.1.2:wsdl2java:generate-sources__wsdl2java:generate-sources)