无法使用Axis2服务生成CXF客户端代码(wsdl2java)

时间:2012-05-02 14:48:03

标签: jaxb cxf axis2 wsdl2java

所以我有一个供应商应用程序,它使用Axis2创建了所有服务。无论出于何种原因,如果我使用Axis2的WSDL2Java生成客户端代码,它只是花花公子,但每当我使用CXF生成它时,我都会遇到错误,我不知道如何让CXF 工作

[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.6.0:wsdl2java (generate-sources) on project unitoffers: Thrown by JAXB:
[ERROR] Thrown by JAXB:
[ERROR] undefined simple or complex type 'xs:EJBException'
[ERROR] at line 1760 column 21 of schema file:/C:/Users/Me/myproject/src/main/resources/wsdl/ObjectHierarchy.wsdl
[ERROR]
[ERROR] undefined simple or complex type 'xs:EJBException'
[ERROR] at line 1831 column 21 of schema file:/C:/Users/Me/myproject/src/main/resources/wsdl/ObjectHierarchy.wsdl
[ERROR]
[ERROR] undefined simple or complex type 'xs:EJBException'
[ERROR] at line 1852 column 21 of schema file:/C:/Users/Me/myproject/src/main/resources/wsdl/ObjectHierarchy.wsdl
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]

Axis2做的事情真的很酷,CXF无法解释吗?如上所述,我可以使用Axis2生成代码,但几乎所有其他服务都是CXF,我不希望在我的项目中混合使用混合服务(更不用说某些项目需要同时拥有两个Axis2和CXF为了工作,所以会让事情变得混乱)。

0 个答案:

没有答案