2016-03-21 66 views
0

现在,我想基于相同的WSDL文件来创建Web服务,但使用Axis2 1.7.0Eclipse Web服务NoClassDefFoundError:org/apache/ws/commons/schema/XmlSchema?

我WSDL到代码生成过程中得到了以下错误:代码生成的WSDL中发生 例外: java.lang.NoClassDefFoundError:org/apache/ws/commons/schema/XmlSchema

我从版本说明中了解到,Axis2 1.7.0已升级其XMLSchema,因此它与Axis2 1.6.x向后兼容。但我不确定我怎么能把这个与我的问题联系起来。

**

From what I understand, Axis2 complains that XMLSchema is not present. So, I import XMLSchema jar into my project build path. But the same error still occurs.

**

任何一个能帮助我吗?

回答

0

您应该导入xmlschema-core-2.2.1.jar来构建路径,并删除旧版本的Xmlschema-1.7。然后重建服务。

这对我来说很有用。