运行Apache Camel时出错

时间:2014-04-22 15:43:48

标签: java routing apache-camel

我在这里阅读教程:Apache Camel Report Incident Part 5

我已经复制并粘贴了教程中的代码,但是当我输入> mvn test
> 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.

我不确定这里的JAR是什么意思,并希望得到一些指示。

1 个答案:

答案 0 :(得分:5)

您需要将camel-cxf依赖项包含在项目中......

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-cxf</artifactId>
    <version>x.x.x</version>
</dependency>