On Fri, Sep 9, 2011 at 5:03 PM, Christoph Burmeister <chburmeis...@googlemail.com> wrote: > Hi folks, > > All help is appreciated. We're running Apache Camel (2.7.0) inside > Apache ActiveMQ (5.5) and all works well. So now we got new > requirements for exposing a webservice based on Camel. > When trying out the cxf-endpoint, we are facing a stupid error "Unable > to locate Spring NamespaceHandler for XML schema namespace > [http://camel.apache.org/schema/cxf]" and maybe you can give us a > little help. > > the camel.xml : > > ------------------- > > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:cxf="http://camel.apache.org/schema/cxf" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd "> > > <bean > id="activemq" > class="org.apache.activemq.camel.component.ActiveMQComponent"> > <property name="brokerURL" value="tcp://localhost:61616"/> > </bean> > > > <cxf:cxfEndpoint > id="orderEntryEndpoint" > address="http://0.0.0.0:8080/" > serviceClass="foo.bar.ServiceImpl" > /> > > <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> > > <route id="route4cxf"> > <from uri="cxf:bean:cxfReceiver?dataFormat=PAYLOAD"/> > <log message="fetching message from cxf-endpoint" > loggingLevel="INFO"/> > <to > uri="activemq:queue:receivedHttpMessages?disableReplyTo=true" /> > </route> > > </camelContext> > > </beans> > > --------------------- > > We already placed camel-cxf-2.7.0.jar and camel-core-2.7.0.jar to the > ActiveMQ-lib-directory. And the small camel.xml is really all, so we > cannot figure out, what (or better : where) the problem is. Could you > give us advice? >
Ah you need a lot more JARs as Apache CXF itself requires many JARs to run. The Apache CXF distribution has a .txt file named whichjars or something like that, that tells which JARs you need. > best, > christoph > -- Claus Ibsen ----------------- FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/