Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading