Java sdk : org.ovirt.engine.sdk4.Error: No connection implementation found

Latest response


I was trying to use java sdk version 4 and followed the guide from ovirt-engine/docs/manual/en_US/html/Java_SDK_Guide/index.html.

When I tried to run my java application, I got the below stacktrace:
Exception in thread "main" org.ovirt.engine.sdk4.Error: No connection implementation found
at org.ovirt.engine.sdk4.ConnectionBuilder.connection(
at com.test.Test.main(
Caused by: java.lang.NoClassDefFoundError: org/apache/http/auth/AuthSchemeFactory
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(
at org.ovirt.engine.sdk4.ConnectionBuilder.connection(
... 1 more
Caused by: java.lang.ClassNotFoundException: org.apache.http.auth.AuthSchemeFactory
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
... 4 more

Where the at line 20 contains:

ConnectionBuilder myBuilder = ConnectionBuilder.connection()

            .url("https://[my-ip-for rhvm]/ovirt-engine/api")

truststore is genearted using the steps mentioned in the Java_SDK guide.

Could you please help me to resolve this issue.
Not: I have installed the java sdk using , yum install java-ovirt-engine-sdk4

Thanks in advance.


hi Nani Babu Mutte, did you fix this issue?