[
https://issues.apache.org/jira/browse/JCLOUDS-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695019#comment-13695019
]
Andrew Phillips commented on JCLOUDS-154:
-----------------------------------------
>From the message it's clear the list of available APIs isn't being loaded,
>which I suspect is a problem with the setup rather than a bug in the code
>itself, since jclouds-karaf is also using OSGi and does not seem to have this
>problem.
Could you first try to run the compute-basics [1] example with your target
provider to see if that works? You might also want to see how jclouds-karaf [2]
manages provider loading in an OSGi container environment.
[1]
https://github.com/jclouds/jclouds-examples/blob/master/compute-basics/pom.xml
[2] https://github.com/jclouds/jclouds-karaf
> key [openstack-nova] not in the list of providers or apis: {}"
> --------------------------------------------------------------
>
> Key: JCLOUDS-154
> URL: https://issues.apache.org/jira/browse/JCLOUDS-154
> Project: jclouds
> Issue Type: Bug
> Components: jclouds-compute
> Affects Versions: 1.6.0
> Environment: jclouds sdk version 1.6
> Openstack - Folsom
> maven
> Reporter: Shankar
> Labels: compute, openstack
>
> I get the an exception when I try to create a new context as below :
> ComputeServiceContext context =
> ContextBuilder.newBuilder(provider)
> .credentials(<username>, <password>)
> .endpoint(<endpoint>).modules(modules)
> .buildView(ComputeServiceContext.class);
> Not sure what is wrong - the parameter provider is correct & all other
> parameters are correct as well.
> I'm using maven with the following dependencies:
> <dependency>
> <groupId>org.jclouds.api</groupId>
> <artifactId>openstack-nova</artifactId>
> <version>1.6.0</version>
> </dependency>
> <dependency>
> <groupId>org.jclouds.driver</groupId>
> <artifactId>jclouds-slf4j</artifactId>
> <version>1.6.0</version>
> </dependency>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira