Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 176561

Unable to use the Java SDK to login from an OSGI container

$
0
0

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


Viewing all articles
Browse latest Browse all 176561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>