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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -