[英]Error running Apache Camel
I'm going through the tutorial here: Apache Camel Report Incident Part 5我正在阅读这里的教程: 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 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.
I'm not sure which JAR is meant here, and would appreciate some pointers.我不确定这里指的是哪个 JAR,希望得到一些指点。
you need to include the camel-cxf dependency to your project... 您需要在项目中包含camel-cxf依赖项...
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<version>x.x.x</version>
</dependency>
I had a similar issue but my url was just a standard http request but i needed to include我有一个类似的问题,但我的 url 只是一个标准的 http 请求,但我需要包括
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-http</artifactId>
<version>x.x.x</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.