Re: [one-users] Haven't authorized while using Java API

2012-11-28 Thread Hoàng Thái Xuân Khoa
On 11/27/2012 4:42 PM, Carlos Martín Sánchez wrote: Can you check if you are using the same OpenNebula and Java OCA versions? I'm using OpenNebula 3.6 and Java OCA 3.6 (i got a packet named: java-oca-3.6.0.tar.gz from http://dev.opennebula.org/projects/opennebula/files). I don't know why i

Re: [one-users] Haven't authorized while using Java API

2012-11-27 Thread Carlos Martín Sánchez
Can you check if you are using the same OpenNebula and Java OCA versions? -- Carlos Martín, MSc Project Engineer OpenNebula - The Open-source Solution for Data Center Virtualization www.OpenNebula.org | cmar...@opennebula.org | @OpenNebulahttp://twitter.com/opennebulacmar...@opennebula.org On

Re: [one-users] Haven't authorized while using Java API

2012-11-26 Thread Hoàng Thái Xuân Khoa
On 11/25/2012 10:33 PM, Giovanni Toraldo wrote: Hi Giovanni, Thanks you so much for your reply. if you instance Client without parameters, will be assumed to be at $ONE_AUTH, and the endpoint will be set to the environment variable $ONE_XMLRPC. I set the environment variable $ONE_AUTH and

Re: [one-users] Haven't authorized while using Java API

2012-11-26 Thread Giovanni Toraldo
On Mon, Nov 26, 2012 at 10:43 AM, Hoàng Thái Xuân Khoa htxuank...@gmail.com wrote: Client client = new Client(oneadmin:7f44b494160f2e69fed6c21b2ce555b8, http://localhost:2633/RPC2;); This looks like an md5 hash, you should put your *real* password instead. -- Giovanni Toraldo http://gionn.net

Re: [one-users] Haven't authorized while using Java API

2012-11-26 Thread Hoàng Thái Xuân Khoa
On 11/26/2012 4:47 PM, Giovanni Toraldo wrote: On Mon, Nov 26, 2012 at 10:43 AM, Hoàng Thái Xuân Khoa htxuank...@gmail.com wrote: Client client = new Client(oneadmin:7f44b494160f2e69fed6c21b2ce555b8, http://localhost:2633/RPC2;); This looks like an md5 hash, you should put your *real* password

[one-users] Haven't authorized while using Java API

2012-11-25 Thread Hoàng Thái Xuân Khoa
Hello everybody, I have successfully managed private cloud using command line. And then i tried to write a simple program to test Java API. But when i use Java API, i haven't authorized. I don't know why because i have had one_auth file i have successfully deployed virtual machine running in

Re: [one-users] Haven't authorized while using Java API

2012-11-25 Thread Giovanni Toraldo
Hi, On Sun, Nov 25, 2012 at 3:21 PM, Hoàng Thái Xuân Khoa htxuank...@gmail.com wrote: Client client = new Client(); if you instance Client without parameters, will be assumed to be at $ONE_AUTH, and the endpoint will be set to the environment variable $ONE_XMLRPC. You may want to