Claus Ibsen created CAMEL-27364:
-----------------------------------

             Summary: camel-jbang - the dependencies of a Kamelet are resolved 
after the routes that use it, so a route that refers to a class of that 
dependency fails
                 Key: CAMEL-27364
                 URL: https://issues.apache.org/jira/browse/CAMEL-27364
             Project: Camel
          Issue Type: Bug
          Components: camel-jbang
            Reporter: Claus Ibsen
             Fix For: 4.24.0


With Camel JBang, a route that uses a Kamelet and refers to a class that comes 
only with a dependency of that Kamelet fails, for example a {{doCatch}} on 
{{org.apache.cxf.binding.soap.SoapFault}} after a Kamelet that declares 
{{camel:cxf-soap}}:

{noformat}
ClassNotFoundException: org.apache.cxf.binding.soap.SoapFault
{noformat}

It works with {{--dep=camel:cxf-soap}}. The Kamelet dependencies seem to be 
downloaded after the user routes are parsed and resolved.

Expected: the dependencies declared by the Kamelets that a route uses are on 
the classpath before that route is built.

Found while adding new Kamelets to the Kamelet catalog (apache/camel-kamelets, 
2026-11-21).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to