[
https://issues.apache.org/jira/browse/JCLOUDS-154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695203#comment-13695203
]
Andrew Phillips commented on JCLOUDS-154:
-----------------------------------------
PS: jclouds uses ServiceLoader internally to find the available APIs, and
historically each OSGi container has had its own version of supporting (or not)
this mechanism. See e.g.
http://www.eclipse.org/forums/index.php/t/474446/
http://apache-felix.18485.x6.nabble.com/How-to-make-java-util-ServiceLoader-work-td4999246.html
SPI Fly [1] seems to be the main resource people are/were pointing to...
[1] http://aries.apache.org/modules/spi-fly.html
> 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