Hi Marlah,

The error:

org.apache.camel.ResolveEndpointFailedException - Failed to resolve
endpoint: kamelet://my-custom-kamelet-action due to:
java.io.FileNotFoundException: Resource not found: classpath:
kamelets/my-custom-kamelet-action

means that the Kamelet is not found (not available) in the Camel Context.
By default Camel will search in the kamelets folder that located here:

src/
 └─ main/
     ├─ java/...
     └─ resources/
         └─ kamelets/

When you build your JAR for production, those files need to end up in
classpath:kamelets/.
When you use for example main is runtime this location is set
automatically, but you can also do it programmatically:

main.configure().setKameletLocation("file:config/kamelets");

or via properties:

camel.kamelet.location=file:config/kamelets

Somehow it seems that the kamelet file isn't deployed to the resource
folder on the server/kubernetes. Best to investigate the jar file there.

Note it's also possible to fully load a Kamelet programmatically like this:

RoutesLoader loader = PluginHelper.getRoutesLoader(context);
Resource resource = ResourceHelper.fromString("my-custom-kamelet-action",
kameletAsString);
loader.loadRoutes(resource);


Raymond





On Mon, Oct 6, 2025 at 8:13 AM enter-marlah (via GitHub) <[email protected]>
wrote:

>
> GitHub user enter-marlah created a discussion: Calling custom Kamelet from
> ToD endpoint
>
> ### Ask a question
>
> Hello!
>
> How can I use custom kamelets from ToD endpoint in deployed version?
>
> When I use custom kamelet in Dev mode, it works but when I build and
> deploy my app I get error: org.apache.camel.ResolveEndpointFailedException
> - Failed to resolve endpoint: kamelet://my-custom-kamelet-action due to:
> java.io.FileNotFoundException: Resource not found: classpath:
> kamelets/my-custom-kamelet-action
>
> The kamelet is only used in the ToD endpoint.
>
> Any ideas?
>
> Thanks
>
> ### Variant
>
> Web Application
>
> ### Container Management (if applicable)
>
> Kubernetes
>
> ### Operating System (if applicable)
>
> None
>
> ### Version
>
> 4.10.2
>
> GitHub link: https://github.com/apache/camel-karavan/discussions/1555
>
> ----
> This is an automatically sent email for [email protected].
> To unsubscribe, please send an email to:
> [email protected]
>
>

Reply via email to