This issue was fixed in jaxws-ri version 3.0.1:
https://github.com/eclipse-ee4j/jax-ws-api/pull/162/files .
Updating the jaxws-ri library version to 3.0.1 would have solved the issue. However, vSphere Management SDK Java bundles and uses jaxws-ri version 2.3.3, stubs generated with this jaxws-ri version has "javax.xml.ws.Service" in service stubs. Since, jaxws-ri changed their package namespace from javax.* to jakarta.*.
After updating the library, Stubs need to be re-generated and compiled. Follow the below steps.
Re-generate stubs using higher version of jaxws-ri.
1. Download jaxws-ri version 3.0.1 or higher and replace it with existing jaxws-ri under the SDK/libs directory.
a. Link to JAX WS RI Standalone Zipped Bundle via various repositories:
https://mvnrepository.com/artifact/com.sun.xml.ws/jaxws-ri/3.0.1 2. Re-generate client bindings(ssoclient.jar/vim25.jar) using WSDL files from SDK. Since vsphere-ws
has a dependency on sso client, the sso client library and samples (sso.jar) need to be built first.
a. Existing samples across SDK's sub-directries, viz. ssoclient, vsphere-ws, eam, sms-sdk, spbm and vslm
must be updated. i.e. Following import statements should be changed from
"javax.xml.ws.*", "javax.xml.bind.*" and "javax.xml.soap.*"
to "jakarta.xml.ws.*", "jakarta.xml.bind.*" and "jakarta.xml.soap.*" respectively.
b. ssoclient : Scripts to build the sso jar and the samples are present under (SDK/ssoclient/java/JAXWS)
1. Run the command "build_ssoclient.bat" to compile and generate stubs
2. Run "build.bat" to compile sample programs
c. vsphere-ws : Re-generate vim25 jar using the build scripts under (SDK/vsphere-ws/java/JAXWS)
1. build_vim25.bat compile and generate stubs
2. build_samples.bat Compiles sample programs (before compiling samples update the import
statements)
d. For rest of the libraries repeat the steps under each sub directories, i.e. eam, sms-sdk, spbm and
vslm.
Note : build-*.sh scripts can also be used for re-generating and compiling client stubs.
For detailed steps follow README under each of the SDK component.
E.g for ssoclient "SDK/ssoclient/java/JAXWS/readme_java.html#stub_generation" and for vsphere-ws "SDK/vsphere-ws/java/JAXWS/readme_java.html"
Workaround:
No workaround available.