Hi,

I'm trying to route a SOAP message from a CXF endpoint. I have the service working on CXF fine, but when following the example from http://activemq.apache.org/camel/cxf.html i keep getting:

Failed to read schema document 'http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd

I'm using apache-camel-1.2.0.jar and I can see it does have schema/cxfEndpoint but it seems my system can't find it.

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint";

       xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://activemq.apache.org/camel/schema/cxfEndpoint http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
    ">

<cxf:cxfEndpoint id="routerEndpoint" address="http://localhost:8080/BusDemo/notifier";
                serviceClass="com.openwave.routing.bus.NotifierBusImp"
                wsdlURL="http://localhost:8080/BusDemo/notifier?wsdl"/>

On the other hand, if I try to do it from Java:

CxfComponent cxf = new CxfComponent(context);
cxf.createEndpoint("router");
....

I get a:
java.lang.NoClassDefFoundError: org/apache/cxf/frontend/AbstractEndpointFactory

I can't find that class on Camel or on CXF, any hint please?

Thx,
Eric

Reply via email to