Camel: org.apache.camel.ResolveEndpointFailedException: No component found with scheme -
i have custom camel component packaged in separate jar. advised here:
http://camel.apache.org/how-do-i-add-a-component.html i created file meta-inf/services/org/apache/camel/component/aq (aq component scheme name) containing:
class=<full class name> everything works when run test program standalone. however, when try deploying container (servicemix, karaf) cannot resolve component scheme name:
org.apache.camel.runtimecamelexception: org.apache.camel.failedtocreaterouteexception: failed create route route7: route(route7)[[from[aq:oprdequeuer]] -> [wiretap[properties:... because of failed resolve endpoint: aq://queue1 due to: no component found scheme: aq also, when register component explicitly:
camelcontext context = getcontext(); context.addcomponent("aq", new aqcomponent(context)); it works fine, including servicemix.
make sure file in meta-inf included in jar.
if file missing component cannot auto discovered, , problem. build component osgi, maybe felix bundle plugin somehow not include file.
i suggest double check this, , inside built jar if file included.
Comments
Post a Comment