Claus Ibsen created CAMEL-6134:
----------------------------------
Summary: 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