Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

REST api call to get object properties in html bridge gives resource not found (404) error.

$
0
0

Hi,

 

I added an Html bridge Summary view to our existing plugin (which is in Flex). The html page is displayed in the Summary tab with the static data like images and headings. But the .gestJSON call to the REST api is failing with error "Failed to load resources: the server responded with a status of 404(Not Found)".

I followed the Html bridge sample chassisB (chassis-summary.js and html) to create the new page.

The UI plugin's web.xml is configured to map /rest/* . dataAccessController bean is defined in the bundle-context.

Java service bundle has the DataAccessController class same as the chassisB DataAccessControllerclass.

 

This is the url that I can see in the javascript debugger and api call is failing for this url.  There are no errors seen in the virgo.log.

https://<vcenter ip>/vsphere-client/webui_ui_ns/rest/data/properties/323de5b9-4d2e-4dd7-ae32-98277dd44e90%252Fmf8k-h38?properties=name,model,version

 

vsphere-client/webui_ui_ns is the Web-ContextPath value in the plugin's MANIFEST.MF

 

I spent lot of time figuring out the issue, but no luck. What am I doing wrong here? Any help is appreciated.

  vCenter server appliance version 6.0.0

SDK - vSphere Web SDK 5.5.0

JDK 1.7.0_79 64 bit

 

Thanks

Deepa


Viewing all articles
Browse latest Browse all 2218

Trending Articles



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