使用 apache cxf 2.7.4 生成 wsdl 时出现问题

Issue In Generating wsdl by using apache cxf 2.7.4

使用 apache cxf 2.7.4 生成 wsdl 时出现问题。对于复杂类型,此参考 属性来了:

xs:element minOccurs="0" ref="tns:launchConfiguration"

我想这样显示:

xs:element minOccurs="0" name="launchConfiguration" type="tns:launchConfiguration"

它在 cxf 2.5.2 中生成正常,但在 2.7.4 中生成不正常出现以下错误:

Unmarshalling Error: unexpected element (uri:url, local:“objectname”). Expected elements are <{}objectname>

通过删除 jaxb 解决了上述问题-impl.jar.There cxf jar 没有问题。 java 6 及更高版本 JAVA SE 库包含 jaxb 依赖项的实现。