使用无效的JAXP API或实现在Ant中运行的axis2。

huangapple go评论79阅读模式
英文:

running with invalid JAXP api or implementation axis2 using ant

问题

我正在尝试通过调用axis2的classname="org.apache.axis2.tool.ant.AntCodegenTask"来从wsdl文件生成axis2-1.7.9存根文件,但我一直在收到以下错误消息:

java.lang.RuntimeException: java.lang.IllegalStateException:
You are running with invalid JAXP api or implementation.
JAXP api/implementation of version 1.3.1 (included in JDK6) or higher is required.
In case you are using ant, make sure ant 1.7.0 or higher is used - older versions of ant contain JAXP api/impl version 1.2 (in xml-apis.jar).
If you want to keep using older ant versions, you have to configure it to use higher the JAXP api/impl versions.

在classpath中,我正在使用xalan-2.7.2.jar、xml-apis-1.4.01.jar和xercesImpl-2.12.1.jar

我的ant版本是:
Apache Ant(TM) version 1.9.1 compiled on May 15 2013

我的java版本是:java version "1.8.0_91" Java(TM) SE Runtime Environment (build 1.8.0_91-b15)

我不明白问题出在哪里?
我在这里漏掉了什么?
JAXP版本1.3.1是从哪里来的?

我还使用了xml-apis-1.4.01.jar和xercesImpl-2.12.1.jar更新了ant的jar包,但仍然没有成功... 我做错了什么?

英文:

I'm trying to generate axis2-1.7.9 stub files from wsdl file by calling axis2 classname="org.apache.axis2.tool.ant.AntCodegenTask"

but I keep getting the following error:

    java.lang.RuntimeException: java.lang.IllegalStateException: 
    You are running with invalid JAXP api or implementation.
    JAXP api/implementation of version 1.3.1 (included in JDK6) or higher is required.
    In case you are using ant, make sure ant 1.7.0 or higher is used - older versions of ant contain JAXP api/impl version 1.2 (in xml-apis.jar). 
    If you want to keep using older ant versions, you have to configure it to use higher the JAXP api/impl versions.

at the classpath, I'm using xalan-2.7.2.jar, xml-apis-1.4.01.jar and xercesImpl-2.12.1.jar

my ant version is:
Apache Ant(TM) version 1.9.1 compiled on May 15 2013

and my java version is: java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b15)

I don't understand what is the problem?
what I'm missing here?
from where JAXP with version 1.3.1 comes from?

I also updated the ant jars with xml-apis-1.4.01.jar and xercesImpl-2.12.1.jar

and still no luck.... what am I doing wrong?

答案1

得分: 0

经过我更新了Java之后,问题得到了解决。显然,Java本身使用了它。

英文:

after I updated the java the problem solved. apparently, java itself used it.

huangapple
  • 本文由 发表于 2020年10月14日 02:32:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/64341139.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定