jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayshankar nair <n_jayshan...@yahoo.com>
Subject Re: error while running JCloudsNove.java
Date Thu, 21 Jun 2018 08:31:31 GMT
 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 Snippet: import org.jclouds.openstack.keystone.v3.config.*;  import org.jclouds.openstack.keystone.config.*;


final Properties overrides = new Properties();overrides.put(KeystoneProperties.KEYSTONE_VERSION,
"3");overrides.put(KeystoneProperties.SCOPE, "domain:default");

novaApi  = ContextBuilder.newBuilder("openstack-nova")   .endpoint("https://192.168.0.12:5000/v3") 
 .credentials("ldap:foo", "bar")   .overrides(overrides)   .buildApi(NovaApi.class);


Thanks,Jayshankar    On Thursday, June 21, 2018, 1:13:40 PM GMT+5:30, Ignasi Barrera <nacx@apache.org>
wrote:  
 
 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 <n_jayshankar@yahoo.com> wrote:

 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");              ^  symbol:   variable KeystoneProperties  location:
class JCloudsNovaJCloudsNova.java:23: error: cannot find symboloverrides.put( KeystoneProperties.SCOPE,
"domain:default");              ^  symbol:   variable KeystoneProperties  location:
class JCloudsNovaJCloudsNova.java:55: error: cannot find symbol   .overrides(overrides) 
            ^  symbol:   variable overrides  location: class JCloudsNova4 errors
Is there a link where i can download v3 jcloud examples.
Thanks,Jayshankar

    On Thursday, June 21, 2018, 11:05:09 AM GMT+5:30, Ignasi Barrera <nacx@apache.org>
wrote:  
 
 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 creation accordingly and see if it works?

I.

On Thu, Jun 21, 2018, 07:00 jayshankar nair <n_jayshankar@yahoo.com> wrote:

 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+----------------------------- -----+-----------+------------ --+--------------+---------+--
---------+-------------------- ----------------------------+| ID                 
             | Region    | Service Name | Service Type | Enabled | Interface | URL 
                                          |+-----------------------------
-----+-----------+------------ --+--------------+---------+-- ---------+--------------------
----------------------------+| 00055fa2240248bf9e693a1d446c7c 59 | RegionOne | gnocchi   
  | metric       | True    | public    | http://192.168.0.12:8041           
           || 0289010ada1446469e2ff14de09ff7 80 | RegionOne | aodh         | alarming 
   | True    | public    | http://192.168.0.12:8042                     
 || 09e23e6226b7415eaf17a5bf4d33ee b8 | RegionOne | ceilometer   | metering     | True 
  | internal  | http://192.168.0.12:8777                       || 0b574bc23cc54bd8a1266ed858a2e8
7f | RegionOne | neutron      | network      | True    | admin     | http://192.168.0.12:9696 
                     || 128768ce20c44b8998a949c6e73c3e b2 | RegionOne | swift 
      | object-store | True    | admin     | http://192.168.0.12:8080/v1/ AUTH_%(tenant_id)s
|| 13782b29b3a04325be59c9c36d2462 2f | RegionOne | placement    | placement    | True 
  | public    | http://192.168.0.12:8778/ placement             || 160ef2bc67534bc19b47df8328fdcf
16 | RegionOne | ceilometer   | metering     | True    | admin     | http://192.168.0.12:8777 
                     || 19b9b5d72f4540f183c4ab574d3efd 71 | RegionOne | cinderv3 
   | volumev3     | True    | admin     | http://192.168.0.12:8776/v3/%( tenant_id)s 
    || 1ded29d260604e9b9cf14706fa558a 21 | RegionOne | cinderv3     | volumev3     |
True    | internal  | http://192.168.0.12:8776/v3/%( tenant_id)s      || 26698f851ccc44b99d1f3601b9917d
9b | RegionOne | keystone     | identity     | True    | admin     | http://192.168.0.12:35357/v3 
                 || 2bea479cb5ea4d128ce9e7f8009be7 60 | RegionOne | nova     
   | compute      | True    | admin     | http://192.168.0.12:8774/v2.1/ %(tenant_id)s 
  || 3066119a6c9147fa8e4626725c3a34 ad | RegionOne | neutron      | network      |
True    | public    | http://192.168.0.12:9696                       || 3912bdc1f8cd4014bb9bfc8292c9ee
7c | RegionOne | glance       | image        | True    | internal  | http://192.168.0.12:9292 
                     || 4243ebf7df0f46fbb062b828d7147c a4 | RegionOne | neutron 
    | network      | True    | internal  | http://192.168.0.12:9696         
             || 491809ebcf99486bb050f3dd7c54e9 1e | RegionOne | swift        |
object-store | True    | internal  | http://192.168.0.12:8080/v1/ AUTH_%(tenant_id)s ||
59c73f5064b7494faa5ca3b3894037 46 | RegionOne | cinderv2     | volumev2     | True 
  | public    | http://192.168.0.12:8776/v2/%( tenant_id)s      || 59d32fdf1d01465bbfeb30291cf3ed
b0 | RegionOne | swift        | object-store | True    | public    | http://192.168.0.12:8080/v1/
AUTH_%(tenant_id)s || 6b5f1f96bef1441fa16947e3d25787 32 | RegionOne | cinder       | volume 
     | True    | admin     | http://192.168.0.12:8776/v1/%( tenant_id)s      ||
724aafb2db954e3e867f841f790fb8 b7 | RegionOne | keystone     | identity     | True 
  | internal  | http://192.168.0.12:5000/v3                    || 7b149ecd13ed4278bc45e106b1d7fc
f2 | RegionOne | glance       | image        | True    | public    | http://192.168.0.12:9292 
                     || 7d093993eeb34acdb9c7c1afe9c771 44 | RegionOne | glance 
     | image        | True    | admin     | http://192.168.0.12:9292       
               || 88431c7c2f67409fb0fc41fe68ec3e ad | RegionOne | gnocchi     
| metric       | True    | internal  | http://192.168.0.12:8041             
         || 8bef913a13f642e58458e9b098faa3 20 | RegionOne | keystone     | identity 
   | True    | public    | http://192.168.0.12:5000/v3                   
|| 99acbe33c97b4ca382d92a6d661adb 44 | RegionOne | placement    | placement    | True 
  | internal  | http://192.168.0.12:8778/ placement             || a3913c23488e456caee2dd66c8e584
bf | RegionOne | gnocchi      | metric       | True    | admin     | http://192.168.0.12:8041 
                     || addbbfdb56a244eba884e3995a548b 16 | RegionOne | cinderv2 
   | volumev2     | True    | admin     | http://192.168.0.12:8776/v2/%( tenant_id)s 
    || babb14683847492eb3129535bda12f 78 | RegionOne | nova         | compute   
  | True    | internal  | http://192.168.0.12:8774/v2.1/ %(tenant_id)s    || bc01b0a1074646f1aa534fa5f36618
9e | RegionOne | aodh         | alarming     | True    | admin     | http://192.168.0.12:8042 
                     || c3f429a1a1bb4eef9feb9c792e8aa4 5c | RegionOne | placement 
  | placement    | True    | admin     | http://192.168.0.12:8778/ placement   
         || c4021436be5845cf8efa797f27e48b 63 | RegionOne | cinderv3     | volumev3 
   | True    | public    | http://192.168.0.12:8776/v3/%( tenant_id)s      || c82c93df6ffa4780a1e4c8912877f7
10 | RegionOne | nova         | compute      | True    | public    | http://192.168.0.12:8774/v2.1/
%(tenant_id)s    || cdfdb096abf844348f8ff62187e683 05 | RegionOne | ceilometer   | metering 
   | True    | public    | http://192.168.0.12:8777                     
 || d9dfe7db65824874af7a093f16a7eb d0 | RegionOne | cinder       | volume       |
True    | internal  | http://192.168.0.12:8776/v1/%( tenant_id)s      || f44419832a474e3fa08716945b5202
19 | RegionOne | cinderv2     | volumev2     | True    | internal  | http://192.168.0.12:8776/v2/%(
tenant_id)s      || fcd3113e3246472f812b2b0c5cc353 88 | RegionOne | aodh         |
alarming     | True    | internal  | http://192.168.0.12:8042               
       || fed975472ca849b0a4d39570c3ab94 1b | RegionOne | cinder       | volume 
     | True    | public    | http://192.168.0.12:8776/v1/%( tenant_id)s      |+-----------------------------
-----+-----------+------------ --+--------------+---------+-- ---------+--------------------
----------------------------+

The command nova list is not present.
Are there any other api examples related to JClouds.
Thanks,Jayshankar
    On Wednesday, June 20, 2018, 7:13:01 PM GMT+5:30, Ignasi Barrera <nacx@apache.org>
wrote:  
 
 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, you first need to understand
the platform you are deploying. How authentication is done, and which versions of the OpenStack
Services are exposed.
If you can do that research to know better your platform and can provide that information
on this list, I'm sure we'll be able to help you get it working.


Regards,
I.

On 19 June 2018 at 12:18, Andrea Turli <andrea.turli@gmail.com> wrote:

Sorry not familiar with packstack, but glad you fixed the maven dependency issues.


On Tue, Jun 19, 2018 at 12:01 PM jayshankar nair <n_jayshankar@yahoo.com> wrote:

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 <andrea.turli@gmail.com> wrote:
 

 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 <n_jayshankar@yahoo.com> wrote:

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. JavaUrlHttpCommandExecutorServ ice - Sending request -263010527:
POST http://192.168.0.12:5000/v2.0/ tokens HTTP/1.1
09:04:54.878 [main] DEBUG jclouds.wire - >> "Sensitive data in payload, use jclouds.wire.log.sensitive
override to enable logging this data."
09:04:54.878 [main] DEBUG jclouds.headers - >> POST http://192.168.0.12:5000/v2.0/ tokens
HTTP/1.1
09:04:54.878 [main] DEBUG jclouds.headers - >> Accept: application/json
09:04:54.878 [main] DEBUG jclouds.headers - >> Content-Type: application/json
09:04:54.878 [main] DEBUG jclouds.headers - >> Content-Length: 94
09:04:54.978 [main] DEBUG o.j.h.i. JavaUrlHttpCommandExecutorServ ice - Receiving response
-263010527: HTTP/1.1 404 Not Found
09:04:54.979 [main] DEBUG jclouds.headers - << HTTP/1.1 404 Not Found
09:04:54.979 [main] DEBUG jclouds.headers - << Keep-Alive: timeout=15, max=100
09:04:54.979 [main] DEBUG jclouds.headers - << Server: Apache/2.4.6 (CentOS)
09:04:54.979 [main] DEBUG jclouds.headers - << Connection: Keep-Alive
09:04:54.979 [main] DEBUG jclouds.headers - << x-openstack-request-id: req-50bbce32-c67b-4b18-90cd-
fa0911f842a0
09:04:54.979 [main] DEBUG jclouds.headers - << Vary: X-Auth-Token
09:04:54.979 [main] DEBUG jclouds.headers - << Date: Tue, 19 Jun 2018 03:34:54 GMT
09:04:54.979 [main] DEBUG jclouds.headers - << Content-Type: application/json
09:04:54.979 [main] DEBUG jclouds.headers - << Content-Length: 133
09:04:54.982 [main] DEBUG jclouds.wire - << "{"error": {"message": "(http://192.168.0.12:5000/v2.
0/tokens): The resource could not be found.", "code": 404, "title": "Not Found"}}"
Exception in thread "main" org.jclouds.rest. ResourceNotFoundException: {"error": {"message":
"(http://192.168.0.12:5000/v2. 0/tokens): The resource could not be found.", "code": 404,
"title": "Not Found"}}
    at org.jclouds.openstack.nova.v2_ 0.handlers.NovaErrorHandler. handleError(NovaErrorHandler.
java:97)
    at org.jclouds.http.handlers. DelegatingErrorHandler. handleError( DelegatingErrorHandler.java:
65)
    at org.jclouds.http.internal. BaseHttpCommandExecutorService .shouldContinue( BaseHttpCommandExecutorService
.java:138)
    at org.jclouds.http.internal. BaseHttpCommandExecutorService .invoke( BaseHttpCommandExecutorService
.java:107)
    at org.jclouds.rest.internal. InvokeHttpMethod.invoke( InvokeHttpMethod.java:91)
    at org.jclouds.rest.internal. InvokeHttpMethod.apply( InvokeHttpMethod.java:74)
    at org.jclouds.rest.internal. InvokeHttpMethod.apply( InvokeHttpMethod.java:45)
    at org.jclouds.rest.internal. DelegatesToInvocationFunction. handle( DelegatesToInvocationFunction.
java:156)
    at org.jclouds.rest.internal. DelegatesToInvocationFunction. invoke( DelegatesToInvocationFunction.
java:123)
    at com.sun.proxy.$Proxy57. authenticatePassword(Unknown Source)
    at org.jclouds.openstack. keystone.auth.functions. AuthenticatePasswordCredential s.authenticate(
AuthenticatePasswordCredential s.java:48)
    at org.jclouds.openstack. keystone.auth.functions. BaseAuthenticator.apply( BaseAuthenticator.java:87)
    at org.jclouds.openstack. keystone.auth.functions. BaseAuthenticator.apply( BaseAuthenticator.java:38)
    at com.google.common.cache. CacheLoader$ FunctionToCacheLoader.load( CacheLoader.java:151)
    at com.google.common.cache. LocalCache$ LoadingValueReference. loadFuture(LocalCache.java:
3527)
    at com.google.common.cache. LocalCache$Segment.loadSync( LocalCache.java:2319)
    at com.google.common.cache. LocalCache$Segment. lockedGetOrLoad(LocalCache. java:2282)
    at com.google.common.cache. LocalCache$Segment.get( LocalCache.java:2197)
    at com.google.common.cache. LocalCache.get(LocalCache. java:3937)
    at com.google.common.cache. LocalCache.getOrLoad( LocalCache.java:3941)
    at com.google.common.cache. LocalCache$LocalLoadingCache. get(LocalCache.java:4824)
    at com.google.common.cache. LocalCache$LocalLoadingCache. getUnchecked(LocalCache.java:
4830)
    at org.jclouds.openstack. keystone.auth.config. AuthenticationModule$2.get( AuthenticationModule.java:138)
    at org.jclouds.openstack. keystone.auth.config. AuthenticationModule$2.get( AuthenticationModule.java:135)
    at org.jclouds.openstack. keystone.v2_0.catalog. V2ServiceCatalog.get( V2ServiceCatalog.java:57)
    at org.jclouds.openstack. keystone.v2_0.catalog. V2ServiceCatalog.get( V2ServiceCatalog.java:42)
    at org.jclouds.openstack. keystone.catalog.suppliers. LocationIdToURIFromServiceEndp
ointsForTypeAndVersion.get( LocationIdToURIFromServiceEndp ointsForTypeAndVersion.java: 76)
    at org.jclouds.openstack. keystone.catalog.suppliers. LocationIdToURIFromServiceEndp
ointsForTypeAndVersion.get( LocationIdToURIFromServiceEndp ointsForTypeAndVersion.java: 46)
    at org.jclouds.rest.suppliers. MemoizedRetryOnTimeOutButNotOn AuthorizationExceptionSupplier
$ SetAndThrowAuthorizationExcept ionSupplierBackedLoader.load( MemoizedRetryOnTimeOutButNotOn
AuthorizationExceptionSupplier .java:75)
    at org.jclouds.rest.suppliers. MemoizedRetryOnTimeOutButNotOn AuthorizationExceptionSupplier
$ SetAndThrowAuthorizationExcept ionSupplierBackedLoader.load( MemoizedRetryOnTimeOutButNotOn
AuthorizationExceptionSupplier .java:57)
    at com.google.common.cache. LocalCache$ LoadingValueReference. loadFuture(LocalCache.java:
3527)
    at com.google.common.cache. LocalCache$Segment.loadSync( LocalCache.java:2319)
    at com.google.common.cache. LocalCache$Segment. lockedGetOrLoad(LocalCache. java:2282)
    at com.google.common.cache. LocalCache$Segment.get( LocalCache.java:2197)
    at com.google.common.cache. LocalCache.get(LocalCache. java:3937)
    at com.google.common.cache. LocalCache.getOrLoad( LocalCache.java:3941)
    at com.google.common.cache. LocalCache$LocalLoadingCache. get(LocalCache.java:4824)
    at org.jclouds.rest.suppliers. MemoizedRetryOnTimeOutButNotOn AuthorizationExceptionSupplier
.get( MemoizedRetryOnTimeOutButNotOn AuthorizationExceptionSupplier .java:150)
    at org.jclouds.location. suppliers.derived. RegionIdsFromRegionIdToURIKeyS et.get(
RegionIdsFromRegionIdToURIKeyS et.java:45)
    at org.jclouds.location. suppliers.derived. RegionIdsFromRegionIdToURIKeyS et.get(
RegionIdsFromRegionIdToURIKeyS et.java:33)
    at com.google.common.base. Suppliers$SupplierComposition. get(Suppliers.java:67)
    at org.jclouds.rest.suppliers. MemoizedRetryOnTimeOutButNotOn AuthorizationExceptionSupplier
$ SetAndThrowAuthorizationExcept ionSupplierBackedLoader.load( MemoizedRetryOnTimeOutButNotOn
AuthorizationExceptionSupplier .java:75)
    at org.jclouds.rest.suppliers. MemoizedRetryOnTimeOutButNotOn AuthorizationExceptionSupplier
$ SetAndThrowAuthorizationExcept ionSupplierBackedLoader.load( MemoizedRetryOnTimeOutButNotOn
AuthorizationExceptionSupplier .java:57)
    at com.google.common.cache. LocalCache$ LoadingValueReference. loadFuture(LocalCache.java:
3527)
    at com.google.common.cache. LocalCache$Segment.loadSync( LocalCache.java:2319)
    at com.google.common.cache. LocalCache$Segment. lockedGetOrLoad(LocalCache. java:2282)
    at com.google.common.cache. LocalCache$Segment.get( LocalCache.java:2197)
    at com.google.common.cache. LocalCache.get(LocalCache. java:3937)
    at com.google.common.cache. LocalCache.getOrLoad( LocalCache.java:3941)
    at com.google.common.cache. LocalCache$LocalLoadingCache. get(LocalCache.java:4824)
    at org.jclouds.rest.suppliers. MemoizedRetryOnTimeOutButNotOn AuthorizationExceptionSupplier
.get( MemoizedRetryOnTimeOutButNotOn AuthorizationExceptionSupplier .java:150)
    at org.jclouds.rest.internal. DelegatesToInvocationFunction. getInstanceOfTypeWithQualifier
( DelegatesToInvocationFunction. java:277)
    at org.jclouds.rest.internal. DelegatesToInvocationFunction. lookupValueFromGuice(
DelegatesToInvocationFunction. java:234)
    at org.jclouds.rest.internal. DelegatesToInvocationFunction. handle( DelegatesToInvocationFunction.
java:152)
    at org.jclouds.rest.internal. DelegatesToInvocationFunction. invoke( DelegatesToInvocationFunction.
java:123)
    at com.sun.proxy.$Proxy59. getConfiguredRegions(Unknown Source)
    at JCloudsNova.<init>( JCloudsNova.java:44)
    at JCloudsNova.main(JCloudsNova. java:19)
Caused by: org.jclouds.http. HttpResponseException: command: POST http://192.168.0.12:5000/v2.0/
tokens HTTP/1.1 failed with response: HTTP/1.1 404 Not Found; content: [{"error": {"message":
"(http://192.168.0.12:5000/v2. 0/tokens): The resource could not be found.", "code": 404,
"title": "Not Found"}}]
    at org.jclouds.openstack.nova.v2_ 0.handlers.NovaErrorHandler. handleError(NovaErrorHandler.
java:78)
    ... 57 more
[root@localhost jclouds]# 
 

    On Tuesday, June 19, 2018 2:26 PM, Andrea Turli <andrea.turli@gmail.com> wrote:
 

 Why are you using 

<dependency>    <groupId>org.apache.jclouds. api</groupId>    <artifactId>openstack-neutron<
/artifactId>    <version>2.0.1</version></dependency>

if your jclouds.properties is 2.1.0 ?

I think 

<dependency>    <groupId>org.apache.jclouds. api</groupId>    <artifactId>openstack-neutron<
/artifactId>      <version>${jclouds.version}</ version></dependency>

should fix the mvn dependency command
Best
On Tue, Jun 19, 2018 at 10:52 AM jayshankar nair <n_jayshankar@yahoo.com> wrote:

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.examples: openstack-examples >-----------
[INFO] Building openstack-examples 1.0
[INFO] ------------------------------ --[ jar ]----------------------------- ----
[WARNING] The POM for org.apache.jclouds.api: openstack-neutron:jar:2.0.1 is missing, no dependency
information available
[INFO] ------------------------------ ------------------------------ ------------
[INFO] BUILD FAILURE
[INFO] ------------------------------ ------------------------------ ------------
[INFO] Total time: 0.707 s
[INFO] Finished at: 2018-06-19T08:36:36+05:30
[INFO] ------------------------------ ------------------------------ ------------
[ERROR] Failed to execute goal on project openstack-examples: Could not resolve dependencies
for project org.apache.jclouds.examples: openstack-examples:jar:1.0: Failure to find org.apache.jclouds.api:
openstack-neutron:jar:2.0.1 in https://repo.maven.apache.org/ maven2 was cached in the local
repository, resolution will not be reattempted until the update interval of central has elapsed
or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following
articles:
[ERROR] [Help 1] http://cwiki.apache.org/ confluence/display/MAVEN/ DependencyResolutionException

 

    On Tuesday, June 19, 2018 11:11 AM, Ignasi Barrera <nacx@apache.org> wrote:
 

 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 resulting "lib" folder you have?



On Tue, Jun 19, 2018, 06:04 jayshankar nair <n_jayshankar@yahoo.com> wrote:

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.openstack.neutron. v2.NeutronApiMetadata
could not be instantiated at java.util.ServiceLoader.fail( ServiceLoader.java:232) at java.util.ServiceLoader.
access$100(ServiceLoader.java: 185) at java.util.ServiceLoader$ LazyIterator.nextService(
ServiceLoader.java:384) at java.util.ServiceLoader$ LazyIterator.next( ServiceLoader.java:404)
at java.util.ServiceLoader$1. next(ServiceLoader.java:480) at com.google.common.collect. ImmutableCollection$Builder.
addAll(ImmutableCollection. java:281)at com.google.common.collect. ImmutableCollection$ ArrayBasedBuilder.addAll(
ImmutableCollection.java:360) at com.google.common.collect. ImmutableSet$Builder.addAll( ImmutableSet.java:508)
at org.jclouds.apis.Apis.all( Apis.java:72) at org.jclouds.apis.Apis.withId( Apis.java:88)
at org.jclouds.ContextBuilder. newBuilder(ContextBuilder. java:169) at JCloudsNova.(JCloudsNova.java:
39) at 

JCloudsNova.main(JCloudsNova. java:19)Caused by: java.lang. NoClassDefFoundError: org/jclouds/openstack
/keystone/v2_0/config/ AuthenticationApiModule at org.jclouds.openstack.neutron. v2.NeutronApiMetadata$Builder.
(NeutronApiMetadata.java:78) at org.jclouds.openstack.neutron. v2.NeutronApiMetadata.( NeutronApiMetadata.java:51)
at sun.reflect. NativeConstructorAccessorImpl. newInstance0(Native Method) at sun.reflect.
NativeConstructorAccessorImpl. newInstance( NativeConstructorAccessorImpl. java:62) at sun.reflect.
DelegatingConstructorAccessorI mpl.newInstance( DelegatingConstructorAccessorI mpl.java:45)
at java.lang.reflect.Constructor. newInstance(Constructor.java: 423) at java.lang.Class.newInstance(
Class.java:442) at java.util.ServiceLoader$ LazyIterator.nextService( ServiceLoader.java:380)
... 10 moreCaused by: java.lang. ClassNotFoundException: org.jclouds.openstack. keystone.v2_0.config.
AuthenticationApiModule at java.net.URLClassLoader. findClass(URLClassLoader.java: 381) at
java.lang.ClassLoader. loadClass(ClassLoader.java: 424) at sun.misc.Launcher$ AppClassLoader.loadClass(
Launcher.java:349) at java.lang.ClassLoader. loadClass(ClassLoader.java: 357) ... 18 more



   


   


   


  

|  | Virus-free. www.avast.com  |


  

  
Mime
View raw message