First of all, thx for the reply!
I am on a Windows XPSP2 box with JSDK1.6
1. I downloaded the Camel 1.2 binary, no such thing as
org.apache.cxf.frontend.AbstractEndpointFactory there
2. I downloaded Camel 1.2-src (it does have the camel-cxf dependency),
normal build failed on CXF Tests
sun.reflect.NativeMethodAccessorImpl invoke0
WARNING: failed [EMAIL PROTECTED]
java.net.BindException: Address already in use: bind
after that I got many of the following exceptions:
INFO: Interceptor has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Could not send Message.
3. Since I use Eclipse, I tried the mvn eclipse:eclipse build wich seems
to work, at least i can see the cxf-rt-core module now but i'm still
adding libraries from .m2/repositories so i'll let you know.
Eric
Freeman Fang wrote:
Hi Eric,
It seems that camel-cxf-1.2.jar is not in your class path,
please add
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-cxf</artifactId>
<version>${camel.version}</version>
</dependency>
in your pom.
Btw, org/apache/cxf/frontend/AbstractEndpointFactory is in the cxf
rt-core module, which camel-cxf depend on.
Best Regards
Freeman
Eric Rodriguez wrote:
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