2013-07-16 1 views
1

vSphere/vCenter에서 VM 템플릿을 프로그래밍 방식으로 배포하려는 경우 시작하여 VMware에서 SDK zip을 다운로드하고 VMClone.java 웹에서 서비스는 Eclipse 프로젝트에 SDK 및이 코드를 사용하여 실행"서버가 HTTP 상태 코드 200 : OK를 전송했습니다"와 함께 vSphere 웹 서비스 샘플이 실패 함

String[] myargs = new String[12]; 
myargs[0] = "--url"; 
myargs[1] = "https://192.168.0.91:9443"; 
myargs[2] = "--username"; 
myargs[3] = "[myuser]"; 
myargs[4] = "--password"; 
myargs[5] = "[mypassword]."; 
myargs[6] = "--datacentername"; 
myargs[7] = "LaptopIkor"; 
myargs[8] = "--vmpath"; 
myargs[9] = "[datastore1]/liferayTomcat/liferayTomcat.vmx"; 
myargs[10] = "--clonename"; 
myargs[11] = "DriverCreation1"; 
com.vmware.vm.VMClone.main(myargs); 

(그냥 샘플 설정이다, 그래서 위의 코드에는 개인 정보 보호 문제) 는 (예이 코드는 매우 좋은하지 않습니다, 그것은 단지를 테스트 용)

그러나 메시지/스택 트레이스와 함께 실패합니다.

com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 200: OK 
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.createResponsePacket(Unknown Source) 
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.process(Unknown Source) 
at com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.processRequest(Unknown Source) 
at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(Unknown Source) 
at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Unknown Source) 
at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Unknown Source) 
at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Unknown Source) 
at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Unknown Source) 
at com.sun.xml.internal.ws.client.Stub.process(Unknown Source) 
at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(Unknown Source) 
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source) 
at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(Unknown Source) 
at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(Unknown Source) 
at $Proxy35.retrieveServiceContent(Unknown Source) 
at com.vmware.vm.VMCreate.connect(VMCreate.java:287) 
at com.vmware.vm.VMCreate.main(VMCreate.java:1047) 
at (my own class with above code) 

VMCreate와 소스 파일을 복사하는 대신 samples.jar를 사용할 때도 마찬가지입니다. 어떤 생각이 어떻게 해결할 수 있습니까?

url은 vSphere Web Client를 포함하여 vCenter Server가 설치된 win2008 서버를 가리 킵니다.

도움 주셔서 감사합니다.

+0

어떻게 그것을 해결 했습니까? – happyHelper

+0

미안하지 않았다. ( – sotix

답변

0
myargs[1] = "https://192.168.0.91:9443"; 

시도

myargs[1] = "https://192.168.0.91/sdk"; 
관련 문제