Hi, thanks for the reply!
1. I am using eclipse (windows XP SP2 jsdk1.6) I tried putting the
schema on my classpath but i'm pretty unsure about how to tell Eclipse
to look for it there.
2. where can I find a snapshot of came 1.3? on
http://people.apache.org/repo/m2-snapshot-repository/org/apache/camel/?
or should i try from svn trunk?
Thanks,
Eric
Willem Jiang wrote:
I think we could put the cxfEndpoint.xsd into the location of
http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd.
Before that we just leverage the Spring's local schema's configuration
and put the schema into the camel-cxf-*.jar.
If you are using the tool such as eclipse to validate the spring
configuration file , you had to extract the cxfEndpoint.xsd and put it
to where the tool can find the schema.
BTW, we fixed some issues of cxf camel component in the 1.3.0 snapshot,
please feel free to try it out.
Willem.
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