Java 运行Apache Camel时出错
我将在这里浏览教程: 我已经在教程中复制并粘贴了代码,但是当我键入Java 运行Apache Camel时出错,java,routing,apache-camel,Java,Routing,Apache Camel,我将在这里浏览教程: 我已经在教程中复制并粘贴了代码,但是当我键入>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\s
>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,希望能有一些提示。您需要在项目中包含camel cxf依赖项
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<version>x.x.x</version>
</dependency>
org.apache.camel
骆驼型cxf
x、 x.x