Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error running Apache Camel

I'm going through the tutorial here: Apache Camel Report Incident Part 5

I've copied and pasted the code in the tutorial but am getting this error when I type > mvn test or
> mvn jetty:run

[ERROR] Failed startup of context 
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@785b38d6{
/camel-example-reportincident,C:\Users\RS88517\Documents\Gravity\
camel-example-reportincident\src\main\webapp} 
org.apache.camel.NoSuchEndpointException: No endpoint could be found for: 
cxf://http://localhost:8080/part-five/webservices/incident?
    serviceClass=org.apache.camel.example.reportincident.ReportIncidentEndpoint
    &wsdlURL=report_incident.wsdl, 
please check your classpath contains the needed camel component jar.

I'm not sure which JAR is meant here, and would appreciate some pointers.

like image 588
La-comadreja Avatar asked Dec 21 '25 23:12

La-comadreja


1 Answers

you need to include the camel-cxf dependency to your project...

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cxf</artifactId>
    <version>x.x.x</version>
</dependency>
like image 169
Ben ODay Avatar answered Dec 23 '25 13:12

Ben ODay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!