<div dir="ltr">Hi,<div><br></div><div>I'm trying to connect to a VMware vCenter Server (Version 5.0.0 Build 1300600) using this code:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

class CustomConnectAuth extends ConnectAuth {<br>    CustomConnectAuth() {<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

        // credType = ...</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">        // ...<br>    }<br>

    @Override<br>    int callback(Credential[] cred) {<br>        // ...<br>        return 0<br>    }<br>}<br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

 </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">ConnectAuth auth = new CustomConnectAuth()<br>

Connect conn = new Connect("esx://USERNAME@HOSTNAME/sdk?no_verify=1", auth, 0)</blockquote></div><div><br></div><div>and I've got this error message:</div><div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

libvirt:  error : unsupported configuration: <b>libvirt was built without the 'esx' driver</b></blockquote><div><br></div><div><br></div><div>If I use the vijava client, the connection works fine.</div><div><br></div>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">ServiceInstance serviceInstance = new ServiceInstance(new URL("<a href="https://HOSTNAME/sdk">https://HOSTNAME/sdk</a>"), USERNAME, PASSWORD, true)</blockquote>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">... </blockquote><div><br></div><div><br></div><div>Some environment info:</div>

<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">os: Ubuntu 13.10<br>jdk: 1.7.0_51-b13<br>Java client: org.libvirt:libvirt:0.5.1</blockquote>

<div><br></div><div><br></div><div>Can you help, please?</div><div><br></div><div>Thanks,</div><div>Mihai</div><div><br></div><div><br></div>-- <br><div dir="ltr">Mihai Cazacu<br>Software Engineer<br>E-mail: <a href="mailto:cazacugmihai@gmail.com" target="_blank">cazacugmihai@gmail.com</a><br>

Mobile: +40 745 254 657<div>Linkedin: <a href="http://www.linkedin.com/in/cazacugmihai" target="_blank">cazacugmihai</a> </div><div>Skype: cazacugmihai<div>Twitter: cazacugmihai<br></div><div><div><br></div></div></div></div>


</div></div>