有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java Eclipse web服务NoClassDefFoundError:org/apache/ws/commons/schema/XmlSchema?

现在,我想基于相同的WSDL文件创建web服务,但使用Axis2 1.7.0

在生成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.

**

有人能帮我吗


共 (1) 个答案

  1. # 1 楼答案

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

    这是我的工作