'Camel jetty endpoint could not be found

I've got a problem, i need to send get request to the url. But i got exception:

Failed to create route route1: Route(route1)[From[jetty://https://jsonplaceholder.typicode.... because of No endpoint could be found for: jetty://https://jsonplaceholder.typicode.com/todos/, please check your classpath contains the needed Camel component jar.

Camel route:

from("jetty://" + serverUrl)
      .log("${body}")
      .to("direct:process");

from("direct:process").id("processing")
      .log("Body processed")
      .log(body().toString());

P.S I'm using camel 3.16.0



Solution 1:[1]

As the error message states, your problem is due to the fact that camel-jetty is not in your classpath.

Assuming that you use Maven, simply add the following dependency to the pom of your project:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-jetty</artifactId>
    <version>3.16.0</version>
</dependency>

If not you can still download it from here.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nicolas Filotto