Hi, all
Here is my code:
String identity = "admin:adminxx";
String credential = "openstack";
String authURL = "
http://10.200.XX.XX:5000/v2.0";
String provider = "swift-keystone";
String endPointName = "swift-keystone.endpoint";
Properties properties = new Properties();
properties.setProperty("jclouds.keystone.credential-type","passwordCredentials");
BlobStoreContext context = ContextBuilder.newBuilder(provider)
.credentials(identity, credential)
.endpoint(authURL)
.modules(ImmutableSet.<Module>of(new EnterpriseConfigurationModule()))
.overrides(properties)
.buildView(BlobStoreContext.class);
In result, it has exceptions:
Exception in thread "main" com.google.inject.CreationException: Guice creation errors:
1) No implementation for org.jclouds.location.suppliers.RegionIdToURISupplier$Factory was bound.
at org.jclouds.openstack.swift.config.SwiftRestClientModule$KeystoneStorageEndpointModule.provideStorageUrl(SwiftRestClientModule.java:89)
1 error
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:154)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
at com.google.inject.Guice.createInjector(Guice.java:95)
at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:321)
at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:261)
at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:521)
at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:501)
at com.syncsort.NewSwift.main(NewSwift.java:38)
Can you help me find the wrong place in my code.
Thanks very much!
ma chi