I suggest using these flags to ant, then paste the entire output:

ant -verbose -debug -Djaxp.debug=1

Robert

On Wed, Oct 14, 2020 at 4:08 AM Levi, Yogev <yogev.l...@teoco.com> wrote:

>
>
> Hi
>
>
>
> 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?
>
>
>
>
>
> any help will be appreciated
>
>
>
> BR,
>
> *Yogev Levi*
>
> Senior Software Engineer
>
> *TEOCO Ltd.*
>
> c:
>
> +972 52 4455 708
>
> p:
>
> +972 3 9269752
>
> *E-mail: yogev.l...@teoco.com <yogev.l...@teoco.com>*
>
> www.teoco.com
>
>
>
>
>
> ------------------------------
>
> PRIVILEGED AND CONFIDENTIAL
> PLEASE NOTE: The information contained in this message is privileged and
> confidential, and is intended only for the use of the individual to whom it
> is addressed and others who have been specifically authorized to receive
> it. If you are not the intended recipient, you are hereby notified that any
> dissemination, distribution or copying of this communication is strictly
> prohibited. If you have received this communication in error, or if any
> problems occur with transmission, please contact sender. Thank you.
>

Reply via email to