I am trying to use the RCU APIs in our virtuilization management application. I downloaded and compiled the CreateVMsInNewNFS.java API. But when I try to run this API i get an error saying
"Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://127.0.0.1:8080/rcu/api?wsdl. It failed with: http://127.0.0.1:8080/rcu/api?wsdl. at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.tryWithMex(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source) at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source) at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown Source) at javax.xml.ws.Service.<init>(Unknown Source) at com.netapp.rcu.api.ApiImplService.<init>(ApiImplService.java:47) at com.netapp.rcu.sample.CreateVmsInNewNFS.main(CreateVmsInNewNFS.java:63) Caused by: java.io.FileNotFoundException: http://127.0.0.1:8080/rcu/api?wsdl at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.URL.openStream(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.createReader(Unknown Source) at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.resolveWSDL(Unknown Source) ... 8 more"
Can anyone help me with this ? What is the api wsdl service/ and what application is support to start it ? I see that the default RCU service (NetApp VI Plugin Service) is ON. I cant understand what more I need to do to get these APIs to work.
Thanks for the link to the document. I followed the instructions to add the Java SSL security mentioned in Appendix C. I am still not able to get it to work.
1: If I do "netstat -a" I dont see any service listening on port 61921. But there is a service on port 61922. If i try to get to it from the browser with http://host:61922/rcu/api?wsdl it displays wired symbols " "
2: In the doc in the "Launching the Rapid Cloning Utility" section I tried to follow the steps to import certificates. But when I click on the Rapid Cloning Utility icon in Vpshere it says "Cannot display webpage".
Could this mean the RCU service is not working properly ?
I made mistake of using http instead of https in my previous reply. But even with https
https://host:61922/rcu/api?wsdl it takes me to a page with a security certificate error and if I click "Continue to this website" it displays page not found. I used the utility httpsTestUtils.jar mentioned in the installation guide to debug the situation
The Name passed to HostnameVerifier : sys2vcenter.elab.com (sys2vcenter.elab.com ) sys2vcenter.elab.com resolves to (address) : 10.8.112.251 sys2vcenter.elab.com resolves to (hostname) : sys2vcenter.elab.com The Peer Host name has been reported as: sys2vcenter.elab.com (sys2vcenter.elab. com) sys2vcenter.elab.com resolves to (address) : 10.8.112.251 sys2vcenter.elab.com resolves to (hostname) : sys2vcenter.elab.com The X509 certificate CN: VSC (VSC) WARNING unable to get inet address using VSC
I was using port 61922 because I didnt see any service listening on port 61921. Could that be THE problem that the service itself has not started or not configured the port correctly ?
I tried out your suggestion of using the VSC url. But again I dont see any service on port 8143. there are a couple of ports viz 8244 and 8281 where I see java services running. If I use these ports in the url, I again get to the security certificate page which ends up telling me that page not found or The requested resource (/kamino/public/api) is not available
Also I checked the vsc/xml file for the version number and it is "Virtual Storage Console for VMware vSphere 1.0.09287.800"
Is there any more debugging I can do to find the issue ?
I finally managed to find the problem. I had another server with RCU installed on it and pointing to my vsphere client. So the when the RCU service on my server was starting it cudnt find port 65921 free and went to port 65925. So disabling the RCU service on the other server and restarting it on my server made it go to the default port 65921. And I was able to access it from my browser with https://sys2vcenter.elab.com:61921/rcu/api?wsdl.
Thanks for all the help and inputs with the issue.