使用ant与无效的JAXP api或实现axis2一起运行

问题描述

我正在通过调用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.
   

在类路径中,我正在使用xalan-2.7.2.jar,xml-apis-1.4.01.jar and xercesImpl-2.12.1.jar

我的蚂蚁版本是: 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)

我不明白这是什么问题? 我在这里想念的是什么? 1.3.1版本的JAXP从何而来?

我还用xml-apis-1.4.01.jar and xercesImpl-2.12.1.jar更新了蚂蚁罐子

仍然没有运气。...我在做什么错了?

解决方法

在我更新 java 后,问题解决了。显然,java 本身使用了它。