Re: error while running JCloudsNove.java

2018-06-21 Thread Ignasi Barrera
"Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?" It looks like you are configuring an "https" endpoint, but in the service list you passed, the V3 identity endpoint is "http". Copy the right endpoint and try again. On 21 June 2018 at 11:33, jayshankar nair

Re: error while running JCloudsNove.java

2018-06-21 Thread jayshankar nair
Hello Ignasi, I apologise for the silly mistake .I  would use better ide like Netbeans. I am still not able to run the code. I have sent the error dump earlier. Can u suggest some pointers.  Thanks in advance.JayshankarOn Thursday, June 21, 2018, 2:43:25 PM GMT+5:30, Ignasi Barrera wrote:

Re: error while running JCloudsNove.java

2018-06-21 Thread Ignasi Barrera
You declare the local variable "overrides" in a different method where you use it. No offense, but just use a proper IDE to write your code. We can help you understand how jclouds works, and use it with your OpenStack distribution. We'll be more than happy to help there, but we're not here to debu

Re: error while running JCloudsNove.java

2018-06-21 Thread jayshankar nair
Hello Ignasi, It  a small piece of code. I got it from jclouds website. I am attaching the codeThanks,Jayshankar | | Virus-free. www.avast.com | JCloudsNova.java Description: Binary data

Re: error while running JCloudsNove.java

2018-06-21 Thread Ignasi Barrera
You need the properties, to configure V3. The code in the example is OK and works. You need to fix your package imports. Use a proper java IDE. On 21 June 2018 at 10:47, jayshankar nair wrote: > Hi Ignasi, > > I commented the overrides properties and ran JCloudNova.java. I get the > following e

Re: error while running JCloudsNove.java

2018-06-21 Thread jayshankar nair
Hi Ignasi, I commented the overrides properties and ran JCloudNova.java. I get the following error.  java -classpath ".:lib/*" JCloudsNovaJun 21, 2018 8:39:40 AM org.jclouds.logging.jdk.JDKLogger logErrorSEVERE: Command not considered safe to retry because request method is POST: [method=org.j

Re: error while running JCloudsNove.java

2018-06-21 Thread Ignasi Barrera
It would be easier if you posted your code in a gist or similar. BTW, don't you have a proper Java IDE that can help you automatically import all required packages? On 21 June 2018 at 10:31, jayshankar nair wrote: > Hi Ignasi, > > I have included the header file. I am getting the following error

Re: error while running JCloudsNove.java

2018-06-21 Thread jayshankar nair
Hi Ignasi, I have included the header file. I am getting the following error in override.  javac -classpath ".:lib/*" JCloudsNova.javaJCloudsNova.java:56: error: cannot find symbol   .overrides(overrides)              ^  symbol:   variable overrides  location: class JCloudsNova1 error Code Snipp

Re: error while running JCloudsNove.java

2018-06-21 Thread Ignasi Barrera
The KeystoneProperties class is in the "org.jclouds.openstack.keystone.config" package. If you have jclouds 2.1.0 you should have no issues to import all classes referenced in the example. On 21 June 2018 at 08:40, jayshankar nair wrote: > Hi, > > I am getting compilation errors. What is the hea

Re: error while running JCloudsNove.java

2018-06-20 Thread jayshankar nair
Hi, I am getting compilation errors. What is the header file for KeystoneProperties. error: package org.jclouds.openstack.keystone does not exist  import org.jclouds.openstack.keystone.*;  ^JCloudsNova.java:22: error: cannot find symboloverrides.put(KeystoneProperties.KEYSTONE_VERSION, "3");   

Re: error while running JCloudsNove.java

2018-06-20 Thread Ignasi Barrera
This helps, thanks. It looks like your program is trying to connect to a Keystone V2 endpoint, but your environment uses the newer Keystone V3. You need to configure the context to use V3 as detailed here: https://jclouds.apache.org/guides/openstack/#keystone Could you change the context creatio

Re: error while running JCloudsNove.java

2018-06-20 Thread jayshankar nair
Hello Ignasi/Andrea, I am still facing problem while running jCloudsNova.java. I am able to run openstack cli command.Openstack version    openstack --versionopenstack 3.15.0 openstack endpoint list+--+---+--+--+-+-

Re: error while running JCloudsNove.java

2018-06-20 Thread Ignasi Barrera
Hi Jayshankar, jclouds supports OpenStack, in general. If you have an OpenStack cloud, you should be able to connect jclouds to it. This said, there are many OpenStack distributions that come with different versions and configurations for the OpenStack Services. In order to connect jclouds to it,

Re: error while running JCloudsNove.java

2018-06-19 Thread Andrea Turli
Sorry not familiar with packstack, but glad you fixed the maven dependency issues. On Tue, Jun 19, 2018 at 12:01 PM jayshankar nair wrote: > Hello, > > I have installed openstack using packstack --allinone. Is it possible for > jcloud to connect to packstack. How can i know the keystone endpoi

Re: error while running JCloudsNove.java

2018-06-19 Thread jayshankar nair
Hello, I have installed openstack using packstack --allinone. Is it possible for jcloud to connect to packstack. How can i know the keystone endpoint and version. Please let me know. Thanks,Jayshankar On Tuesday, June 19, 2018 2:51 PM, Andrea Turli wrote: Please read carefully http:/

Re: error while running JCloudsNove.java

2018-06-19 Thread Andrea Turli
Please read carefully http://jclouds.apache.org/guides/openstack/ Double check the keystone endpoint and make sure of the Keystone version your provider is using. Best On Tue, Jun 19, 2018 at 11:15 AM jayshankar nair wrote: > Hello, > > I am getting the following error while running JCloudsNov

Re: error while running JCloudsNove.java

2018-06-19 Thread jayshankar nair
Hello, I am getting the following error while running JCloudsNova java -classpath ".:lib/*:/usr/local/jdk1.8.0_171/lib" JCloudsNova 09:04:54.875 [main] DEBUG o.j.rest.internal.InvokeHttpMethod - >> invoking V2AuthenticationApi.authenticatePassword 09:04:54.878 [main] DEBUG o.j.h.i.JavaUrlHttpComm

Re: error while running JCloudsNove.java

2018-06-19 Thread Andrea Turli
Why are you using org.apache.jclouds.api openstack-neutron 2.0.1 if your jclouds.properties is 2.1.0 ? I think org.apache.jclouds.api openstack-neutron ${jclouds.version} should fix the mvn dependency command Best On Tue, Jun 19, 2018 at 10:52 AM jayshankar nair

Re: error while running JCloudsNove.java

2018-06-19 Thread jayshankar nair
Hello, After changing the groupid for neutron, I am getting the  error while executing maven. The lib directory content is as below. [root@localhost jclouds]# mvn dependency:copy-dependencies "-DoutputDirectory=./lib" [INFO] Scanning for projects... [INFO] [INFO] ---< org.apache.jclouds

Re: error while running JCloudsNove.java

2018-06-18 Thread Ignasi Barrera
That tutorial is a bit outdated. Did you use the exact pom.xml referenced there to build the "lib" folder? A quick look shows that the Neutron groupId is wrong. Now it is "org.apache.jclouds.api". Could you verify it, and that you get all deps without errors? Could you share the contents of the re

error while running JCloudsNove.java

2018-06-18 Thread jayshankar nair
The description of jclouds is given in the below link.https://jclouds.apache.org/guides/openstack/. I have packstack installed in the machine. java -classpath ".:lib/*" JCloudsNovaException in thread "main" java.util.ServiceConfigurationError: org.jclouds.apis.ApiMetadata: Provider org.jclouds.