I am using the VCloud Java SDK from an OSGI web application running in the Virgo Server. I have hot a strange problem where I am able to login from a regular Java process, but the same code when executed from the web application, gives me an "unauthorized error"
I am sure it's a classloading issue, but having a hard time figuring out what it is without the VCloud Java SDK sources.
Here's the stack trace:
com.vmware.vcloud.sdk.exception.UnauthorizedAccessException: Unauthorized
at com.vmware.vcloud.sdk.RestUtil.login(RestUtil.java:296)
at com.vmware.vcloud.sdk.VcloudClient.login(VcloudClient.java:321)
I have set VcloudClient's log level to 'finest', but I don't see anything relevant. Is there any way I can see the actual REST request body that is made to the VCD server ?
Has anyone come across a similar issue ?
--
Thanks
Parag