简体   繁体   English

Apache 轴找不到 WSDL2Java class

[英]Apache Axis cannot find WSDL2Java class

I have used Apache Axis in the past to generate a Java client from a wsdl.我过去曾使用 Apache Axis 从 wsdl 生成 Java 客户端。 Since then I received a new laptop and I am trying to get Axis setup again.从那以后,我收到了一台新笔记本电脑,我正在尝试重新设置 Axis。 I am running Windows 10 and I'm trying the commands in both Git for Windows as well as in the windows command prompt.我正在运行 Windows 10 并且我正在尝试 Git 中 ZAEA23489CE3AA9B6406EBB28E0CDA430C 以及 Z0F4132467ED1502B5045 命令提示符中的命令。

My setup is such, I have AXIS2_HOME=%USERPROFILE%\development\Apache\axis2-1.7.9 and my PATH includes %AXIS2_HOME%\bin and %AXIS2_HOME% .我的设置是这样的,我有AXIS2_HOME=%USERPROFILE%\development\Apache\axis2-1.7.9并且我的 PATH 包括%AXIS2_HOME%\bin%AXIS2_HOME% I have the same setup for Axis 1.4 AXIS_HOME=%USERPROFILE%\development\Apache\axis-1.4 and PATH includes %AXIS_HOME%\bin , %AXIS_HOME%\bin .我对 Axis 1.4 AXIS_HOME=%USERPROFILE%\development\Apache\axis-1.4有相同的设置,并且 PATH 包括%AXIS_HOME%\bin%AXIS_HOME%\bin

For Axis2, when I run $AXIS2_HOME/bin/wsdl2java.sh -cp $AXISCLASSPATH -uri./SI_Z_EUPM_SHPFLRI_BREAKDOWN_START_OIService.wsdl in Git BASH my output is simply For Axis2, when I run $AXIS2_HOME/bin/wsdl2java.sh -cp $AXISCLASSPATH -uri./SI_Z_EUPM_SHPFLRI_BREAKDOWN_START_OIService.wsdl in Git BASH my output is simply

 Using AXIS2_HOME: /c/Users/aa99988/development/Apache/axis2-1.7.9
 Using JAVA_HOME:  C:\Users\aa99988\development\languages\Java\openJDK_8
Error: Could not find or load main class org.apache.axis2.wsdl.WSDL2Java

The same response is given if I set up windows command accordingly.如果我相应地设置 windows 命令,则会给出相同的响应。

Regardless of which Axis version I use, I get the same response.无论我使用哪个 Axis 版本,我都会得到相同的响应。

How can I fix this?我怎样才能解决这个问题?

I resolved the issue by using Apache Axis 1.4 and executing the commands from windows command prompt.我通过使用 Apache Axis 1.4 并从 windows 命令提示符执行命令解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM