On 02/17/2014 05:09 PM, Vikas Kokare wrote:
I am using oVirt Java SDK 3.4.2 to connect to RHEV-M environment. The
code being used is
org.ovirt.engine.sdk.Api api = new
Api("https://HOST:PORT/api","USER","PASSWORD";, true);
Have you tried "user@domain" for the user parameter?
The response from the server to this call is
/oVirt API error JBoss Web/7.2.2.Final-redhat-1 -
JBWEB64: Error report J*BWEB65: HTTP Status 401* -
JBWEB000309: type
JBWEB67: Status reportJBWEB68: message
JBWEB69: description J*BWEB000121: This
request requires HTTP authentication*.noshade="noshade">JBoss Web/7.2.2.Final-redhat-1
/
The documentation talks about the 401 error when the request doesn't
contain "Authorization" header.
Even when i access https://HOST:PORT/api , i am prompted to login, but
the credentials used to login to
https://HOST:PORT/webadmin/webadmin/WebAdmin.html don't work. So if i
login to webadmin console first, then since the "Authorization" header
is set, access to /api is now possible in the browser.
I need help here specifically for making the Java SDK work with RHeVM
server.
-Vikas
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel