[
https://issues.apache.org/jira/browse/CAMEL-6134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-6134:
-------------------------------
Assignee: (was: Ioannis Canellos)
> camel-jclouds - Does not work in OSGi - Seems META-INF/services loader may
> not work
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-6134
> URL: https://issues.apache.org/jira/browse/CAMEL-6134
> Project: Camel
> Issue Type: Bug
> Components: camel-jclouds, karaf
> Affects Versions: 2.11.0
> Reporter: Claus Ibsen
>
> The BlobStoreBlueprintRouteTest test fails in tests/camel-itest-osgi, when
> running
> {code}
> mvn clean test -Dtest=BlobStoreBlueprintRouteTest
> {code}
> It cannot find the transient provider, which seems to be located in
> jclouds-blobstore JAR in the META/INF/services directory.
> org.jclouds.blobstore.TransientApiMetadata
> Migrating to the new builder API I get this error
> {code}
> java.util.NoSuchElementException: key [transient] not in the list of
> providers or apis: {}
> at org.jclouds.ContextBuilder.newBuilder(ContextBuilder.java:172)
> at
> org.apache.camel.itest.osgi.jclouds.BlobStoreBlueprintRouteTest.doPreSetup(BlobStoreBlueprintRouteTest.java:52)
> {code}
> Not sure what it takes to get service loader to work in OSGi / Karaf.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)