Catalog
  1. 1. webService报错
    1. 1.1. 报错内容如下
    2. 1.2. 修复
xmlschema-read

webService报错

报错内容如下

1
Exception in thread "main" java.lang.NoSuchMethodError: org.apache.ws.commons.schema.XmlSchemaCollection.read(Lorg/w3c/dom/Document;Ljava/lang/String;)Lorg/apache/ws/commons/schema/XmlSchema;

修复

  1. 观察是否导入
    1
    <artifactId>xmlchema-core</artifactId>

或者

1
<artifactId>XmlSchema</artifactId>
  1. 查找该方法,其位于

    1
    2
    <artifactId>xmlchema-core</artifactId>
    <version>2.0.3</version>
  2. 解决项目中的jar包版本冲突

Author: tuean
Link: http://tuean.cn/2020/01/07/xmlschema-read/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Donate
  • 微信
  • 支付寶

Comment