[ https://issues.apache.org/jira/browse/CAMEL-6134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13594705#comment-13594705 ]
Ioannis Canellos commented on CAMEL-6134: ----------------------------------------- The service loader doesn't work inside OSGi. So I've added some bits to jclouds itself so that it registers its own stuff founds under META-INF/service to the Service Registry. I'll have a look and see why its borked. > 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 > Assignee: Ioannis Canellos > > 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 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