vmware / vsphere-automation-sdk-java

Java samples, language bindings, and API reference documentation for vSphere, VMC, and NSX-T using the VMware REST API
MIT License
210 stars 134 forks source link

vSphere 8.0 Update 1 & VMware Cloud on AWS 1.22 does not build at ubuntu 22.04 #192

Closed GVLLIFESTYLE closed 1 year ago

GVLLIFESTYLE commented 1 year ago

logs below:

mvn initialize ==> works mvn clean install ==> error

[ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[17,19] error: package javax.xml.ws does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[17,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[18,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[19,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[22,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[23,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[24,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[25,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[57,42] error: cannot find symbol [ERROR] symbol: class SOAPHeader location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[79,43] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[79,18] error: cannot find symbol [ERROR] symbol: class SOAPHeader location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[80,15] error: cannot find symbol [ERROR] symbol: class SOAPException location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[116,44] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[144,12] error: cannot find symbol [ERROR] symbol: class JAXBElement location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[173,36] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/fedramp/SamlTokenUtil.java:[11,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/SsoHelper.java:[22,19] error: package javax.xml.ws does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/vcenter/identity/helpers/VcenterTokenExchange.java:[15,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[15,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[16,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[17,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[18,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[19,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[20,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[34,8] error: cannot find symbol [ERROR] symbol: class SOAPHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[34,20] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[50,18] error: cannot find symbol [ERROR] symbol: class JAXBElement location: class UserCredentialHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[71,33] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext location: class UserCredentialHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[37,22] error: cannot find symbol [ERROR] symbol: class MessageContext location: class SSOHeaderHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[41,31] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext location: class SSOHeaderHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[19,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[20,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[21,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[29,52] error: cannot find symbol [ERROR] symbol: class HandlerResolver /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[31,23] error: cannot find symbol [ERROR] symbol: class Handler location: class HeaderHandlerResolver /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[34,41] error: cannot find symbol [ERROR] symbol: class PortInfo location: class HeaderHandlerResolver /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[34,16] error: cannot find symbol [ERROR] symbol: class Handler location: class HeaderHandlerResolver /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[22,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[23,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[56,12] error: cannot find symbol [ERROR] symbol: class JAXBElement location: class TimeStampHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[81,33] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext location: class TimeStampHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/LookupServiceHelper.java:[32,19] error: package javax.xml.ws does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[15,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[16,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[17,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[35,33] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext location: class SamlTokenExtractionHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[75,37] error: cannot access Service [ERROR] class file for javax.xml.ws.Service not found /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[77,22] error: cannot find symbol [ERROR] symbol: class BindingProvider location: class VimAuthenticationHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[86,21] error: cannot find symbol [ERROR] symbol: variable BindingProvider location: class VimAuthenticationHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[87,21] error: cannot find symbol [ERROR] symbol: variable BindingProvider location: class VimAuthenticationHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[61,12] error: cannot find symbol [ERROR] symbol: class JAXBElement location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[118,12] error: cannot find symbol [ERROR] symbol: variable MessageContext location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[149,12] error: cannot find symbol [ERROR] symbol: class JAXBContext location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[149,38] error: cannot find symbol [ERROR] symbol: variable JAXBContext location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[155,17] error: cannot find symbol [ERROR] symbol: class JAXBException location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[177,16] error: cannot find symbol [ERROR] symbol: variable MessageContext location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[182,17] error: cannot find symbol [ERROR] symbol: class SOAPException location: class WssHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/fedramp/SamlTokenUtil.java:[116,26] error: cannot find symbol [ERROR] symbol: variable DatatypeConverter location: class SamlTokenUtil /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/SsoHelper.java:[96,18] error: cannot find symbol [ERROR] symbol: method setHandlerResolver(HeaderHandlerResolver) location: variable stsService of type STSService /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/SsoHelper.java:[173,43] error: cannot find symbol [ERROR] symbol: class BindingProvider location: class SsoHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/SsoHelper.java:[175,23] error: cannot find symbol [ERROR] symbol: variable BindingProvider location: class SsoHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/vcenter/identity/helpers/VcenterTokenExchange.java:[63,34] error: cannot find symbol [ERROR] symbol: variable DatatypeConverter location: class VcenterTokenExchange /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[36,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[40,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[45,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[70,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[83,21] error: cannot find symbol [ERROR] symbol: class SOAPException location: class UserCredentialHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[31,61] error: cannot find symbol [ERROR] symbol: class Handler location: class HeaderHandlerResolver /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[33,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[80,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[93,21] error: cannot find symbol [ERROR] symbol: class SOAPException location: class TimeStampHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/LookupServiceHelper.java:[96,12] error: cannot find symbol [ERROR] symbol: variable BindingProvider location: class LookupServiceHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/LookupServiceHelper.java:[95,10] error: cannot find symbol [ERROR] symbol: class BindingProvider location: class LookupServiceHelper /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[34,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[39,16] error: cannot find symbol [ERROR] symbol: class SOAPBody location: class SamlTokenExtractionHandler /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[74,21] error: cannot find symbol [INFO] 76 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 5.830 s [INFO] Finished at: 2023-05-10T11:45:55+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project vsphere-samples-nodeps: Compilation failure: Compilation failure: [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[17,19] error: package javax.xml.ws does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[17,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[18,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[19,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[22,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[23,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[24,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[25,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[57,42] error: cannot find symbol [ERROR] symbol: class SOAPHeader [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[79,43] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[79,18] error: cannot find symbol [ERROR] symbol: class SOAPHeader [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[80,15] error: cannot find symbol [ERROR] symbol: class SOAPException [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[116,44] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[144,12] error: cannot find symbol [ERROR] symbol: class JAXBElement [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[173,36] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/fedramp/SamlTokenUtil.java:[11,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/SsoHelper.java:[22,19] error: package javax.xml.ws does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/vcenter/identity/helpers/VcenterTokenExchange.java:[15,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[15,21] error: package javax.xml.bind does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[16,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[17,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[18,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[19,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[20,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[34,8] error: cannot find symbol [ERROR] symbol: class SOAPHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[34,20] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[50,18] error: cannot find symbol [ERROR] symbol: class JAXBElement [ERROR] location: class UserCredentialHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[71,33] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext [ERROR] location: class UserCredentialHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[37,22] error: cannot find symbol [ERROR] symbol: class MessageContext [ERROR] location: class SSOHeaderHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[41,31] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext [ERROR] location: class SSOHeaderHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[19,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[20,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[21,27] error: package javax.xml.ws.handler does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[29,52] error: cannot find symbol [ERROR] symbol: class HandlerResolver [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[31,23] error: cannot find symbol [ERROR] symbol: class Handler [ERROR] location: class HeaderHandlerResolver [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[34,41] error: cannot find symbol [ERROR] symbol: class PortInfo [ERROR] location: class HeaderHandlerResolver [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[34,16] error: cannot find symbol [ERROR] symbol: class Handler [ERROR] location: class HeaderHandlerResolver [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[22,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[23,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[56,12] error: cannot find symbol [ERROR] symbol: class JAXBElement [ERROR] location: class TimeStampHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[81,33] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext [ERROR] location: class TimeStampHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/LookupServiceHelper.java:[32,19] error: package javax.xml.ws does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[15,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[16,21] error: package javax.xml.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[17,32] error: package javax.xml.ws.handler.soap does not exist [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[35,33] error: cannot find symbol [ERROR] symbol: class SOAPMessageContext [ERROR] location: class SamlTokenExtractionHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[75,37] error: cannot access Service [ERROR] class file for javax.xml.ws.Service not found [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[77,22] error: cannot find symbol [ERROR] symbol: class BindingProvider [ERROR] location: class VimAuthenticationHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[86,21] error: cannot find symbol [ERROR] symbol: variable BindingProvider [ERROR] location: class VimAuthenticationHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[87,21] error: cannot find symbol [ERROR] symbol: variable BindingProvider [ERROR] location: class VimAuthenticationHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[61,12] error: cannot find symbol [ERROR] symbol: class JAXBElement [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[118,12] error: cannot find symbol [ERROR] symbol: variable MessageContext [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[149,12] error: cannot find symbol [ERROR] symbol: class JAXBContext [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[149,38] error: cannot find symbol [ERROR] symbol: variable JAXBContext [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[155,17] error: cannot find symbol [ERROR] symbol: class JAXBException [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[177,16] error: cannot find symbol [ERROR] symbol: variable MessageContext [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/WssHelper.java:[182,17] error: cannot find symbol [ERROR] symbol: class SOAPException [ERROR] location: class WssHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/fedramp/SamlTokenUtil.java:[116,26] error: cannot find symbol [ERROR] symbol: variable DatatypeConverter [ERROR] location: class SamlTokenUtil [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/SsoHelper.java:[96,18] error: cannot find symbol [ERROR] symbol: method setHandlerResolver(HeaderHandlerResolver) [ERROR] location: variable stsService of type STSService [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/SsoHelper.java:[173,43] error: cannot find symbol [ERROR] symbol: class BindingProvider [ERROR] location: class SsoHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/SsoHelper.java:[175,23] error: cannot find symbol [ERROR] symbol: variable BindingProvider [ERROR] location: class SsoHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/vcenter/identity/helpers/VcenterTokenExchange.java:[63,34] error: cannot find symbol [ERROR] symbol: variable DatatypeConverter [ERROR] location: class VcenterTokenExchange [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[36,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[40,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SSOHeaderHandler.java:[45,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[70,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/UserCredentialHandler.java:[83,21] error: cannot find symbol [ERROR] symbol: class SOAPException [ERROR] location: class UserCredentialHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[31,61] error: cannot find symbol [ERROR] symbol: class Handler [ERROR] location: class HeaderHandlerResolver [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/HeaderHandlerResolver.java:[33,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[80,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/TimeStampHandler.java:[93,21] error: cannot find symbol [ERROR] symbol: class SOAPException [ERROR] location: class TimeStampHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/LookupServiceHelper.java:[96,12] error: cannot find symbol [ERROR] symbol: variable BindingProvider [ERROR] location: class LookupServiceHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/LookupServiceHelper.java:[95,10] error: cannot find symbol [ERROR] symbol: class BindingProvider [ERROR] location: class LookupServiceHelper [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[34,4] error: method does not override or implement a method from a supertype [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[39,16] error: cannot find symbol [ERROR] symbol: class SOAPBody [ERROR] location: class SamlTokenExtractionHandler [ERROR] /BLACKEDOUT//vsphere-automation-sdk-java-8.0.1.0/src/main/java/vmware/samples/sso/soaphandlers/SamlTokenExtractionHandler.java:[74,21] error: cannot find symbol [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

kunal-pmj commented 1 year ago

Do you need help on the issue? Have you been able to build the SDK?

kunal-pmj commented 1 year ago

It seems the vim25 jar is not in the class path. Have you updated the pom.xml or not synced the lib?

In order to build the SDK you need to do following

mvn initilaize -> to install the libraries from the lib to maven repository mvn clean install -> to build the SDK

Hope that helps. Closing the issue. Reopen if you need further help on the same

GVLLIFESTYLE commented 1 year ago

The previous version was building without issues. Just update 1 does not built at all at my linux!

GVLLIFESTYLE commented 1 year ago

@kunal-pmj

Steps to resproduce:

Clean your entire m2 cache Build Update 1 SDK

If you won't clean the cache it may build cause of the older depencies of previouse version.

kunal-pmj commented 1 year ago

what is your JDK version?

8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[17,19] error: package javax.xml.ws

This packages are expected to be provided by the JRE

GVLLIFESTYLE commented 1 year ago

This does not build: vSphere 8.0 Update 1 & VMware Cloud on AWS 1.22

This does: vSphere 8.0 & VMware Cloud on AWS 1.20

mtsvetanov commented 1 year ago

what is your JDK version?

8.0.1.0/src/main/java/vmware/samples/common/authentication/VimAuthenticationHelper.java:[17,19] error: package javax.xml.ws

This packages are expected to be provided by the JRE

This is true for Java 8, but not for Java 11. For the latter the JAX-WS dependency has to be provided explicitly on the classpath. The pom.xml has a profile which is supposed to activate for JAva 11 and do that: https://github.com/vmware/vsphere-automation-sdk-java/blob/1b9882f4ce758a73570879f452971ee673904773/pom.xml#L40

GVLLIFESTYLE commented 1 year ago

openjdk version "11.0.18" 2023-01-17

kunal-pmj commented 1 year ago

This is a bug. As a workaround use JDK 8.

We are working on the fix and release a patch

GVLLIFESTYLE commented 1 year ago

One more question. Is the latest version of the SDK compatible with VMWARE 7?

kunal-pmj commented 1 year ago

Yes, the SDKs are backward compatible

GVLLIFESTYLE commented 1 year ago

Thx for the information

Am 29. Mai 2023, 06:21, um 06:21, Kunal Singh @.***> schrieb:

Yes, the SDKs are backward compatible

-- Reply to this email directly or view it on GitHub: https://github.com/vmware/vsphere-automation-sdk-java/issues/192#issuecomment-1566509926 You are receiving this because you authored the thread.

Message ID: @.***>

kunal-pmj commented 1 year ago

The issue is fixed : https://github.com/vmware/vsphere-automation-sdk-java/pull/193