Created
November 14, 2012 15:34
-
-
Save Yinying/4072802 to your computer and use it in GitHub Desktop.
Mac OS X 10.7.4, Java 1.6.0_33, javac 1.6.0_33, jclouds 1.5.1, follow the instructions in "jclouds and OpenStack" post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ java -cp ".:lib/*" JCloudsOpenStack | |
- >> "{"auth":{"passwordCredentials":{"username":"demo","password":"devstack"},"tenantName":"demo"}}" | |
- >> POST http://166.78.5.234:5000/v2.0/tokens HTTP/1.1 | |
- >> Accept: application/json | |
- >> Content-Type: application/json | |
- >> Content-Length: 94 | |
- << HTTP/1.1 200 OK | |
- << Vary: X-Auth-Token | |
- << Date: Wed, 14 Nov 2012 15:17:20 GMT | |
- << Connection: keep-alive | |
- << Content-Type: application/json | |
- << Content-Length: 2370 | |
- << "{"access": {"token": {"expires": "2012-11-15T15:17:20Z", "id": "bb3a2da194794b049cad3874a5f311fe", "tenant": {"enabled": true, "description": null, "name": "demo", "id": "f6c97bc325bc4cf38731d028094c9e5a"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://166.78.5.235:8774/v2/f6c97bc325bc4cf38731d028094c9e5a", "region": "RegionOne", "internalURL": "http://166.78.5.235:8774/v2/f6c97bc325bc4cf38731d028094c9e5a", "id": "b02f24e41c104f5a8763a36c9f2f7078", "publicURL": "http://166.78.5.235:8774/v2/f6c97bc325bc4cf38731d028094c9e5a"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://166.78.5.235:3333", "region": "RegionOne", "internalURL": "http://166.78.5.235:3333", "id": "66d358c8ab0541019e63130850e62ba2", "publicURL": "http://166.78.5.235:3333"}], "endpoints_links": [], "type": "s3", "name": "s3"}, {"endpoints": [{"adminURL": "http://166.78.5.235:9292", "region": "RegionOne", "internalURL": "http://166.78.5.235:9292", "id": "6275c56d936e478cb0266439ec4a4907", "publicURL": "http://166.78.5.235:9292"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://166.78.5.235:8776/v1/f6c97bc325bc4cf38731d028094c9e5a", "region": "RegionOne", "internalURL": "http://166.78.5.235:8776/v1/f6c97bc325bc4cf38731d028094c9e5a", "id": "6370ee3b76d94808834c6a946e18c256", "publicURL": "http://166.78.5.235:8776/v1/f6c97bc325bc4cf38731d028094c9e5a"}], "endpoints_links": [], "type": "volume", "name": "cinder"}, {"endpoints": [{"adminURL": "http://166.78.5.235:8773/services/Admin", "region": "RegionOne", "internalURL": "http://166.78.5.235:8773/services/Cloud", "id": "293c9b8c6f034c1cad3ad2fc3ed09189", "publicURL": "http://166.78.5.235:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://166.78.5.235:35357/v2.0", "region": "RegionOne", "internalURL": "http://166.78.5.235:5000/v2.0", "id": "2a0a6da029e84c71b49c58f536ecf6c2", "publicURL": "http://166.78.5.235:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "demo", "roles_links": [], "id": "cad4c2cb642f487ab304ec198fc476dc", "roles": [{"name": "Member"}, {"name": "anotherrole"}], "name": "demo"}, "metadata": {"is_admin": 0, "roles": ["d1947cd62848488ebc89e95458a910bc", "7a985674e553416dbf2a0dd6b2af55a5"]}}}" | |
java.lang.reflect.UndeclaredThrowableException | |
at $Proxy62.getConfiguredZones(Unknown Source) | |
at JCloudsOpenStack.init(JCloudsOpenStack.java:54) | |
at JCloudsOpenStack.main(JCloudsOpenStack.java:26) | |
Caused by: java.lang.reflect.InvocationTargetException | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.jclouds.concurrent.internal.SyncProxy.invoke(SyncProxy.java:161) | |
... 3 more | |
Caused by: com.google.inject.ConfigurationException: Guice configuration errors: | |
1) No implementation for java.util.Set<java.lang.String> was bound. | |
while locating java.util.Set<java.lang.String> | |
1 error | |
at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004) | |
at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1009) | |
at org.jclouds.rest.internal.AsyncRestClientProxy.getInstanceOfType(AsyncRestClientProxy.java:203) | |
at org.jclouds.rest.internal.AsyncRestClientProxy.lookupValueFromGuice(AsyncRestClientProxy.java:180) | |
at org.jclouds.rest.internal.AsyncRestClientProxy.invoke(AsyncRestClientProxy.java:144) | |
at $Proxy61.getConfiguredZones(Unknown Source) | |
... 8 more |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment