camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pevgen <pev...@km.ru>
Subject cxf spring configuration (camel 1.5.0)
Date Fri, 23 Jan 2009 16:16:27 GMT

Hello.

I try to configurate a cxf-endpoint in a spring config. But i got error 
"org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean
named 'serviceEndpoint' must be of type [org.apache.camel.Endpoint], but was
actually of type [org.apache.camel.component.cxf.spring.CxfEndpointBean]"

config.xml :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:jaxws="http://cxf.apache.org/jaxws"
       xmlns:cxf="http://activemq.apache.org/camel/schema/cxfEndpoint"
        
       xmlns:camel="http://activemq.apache.org/camel/schema/spring"
       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/spring
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
       http://activemq.apache.org/camel/schema/cxfEndpoint
http://activemq.apache.org/camel/schema/cxf/cxfEndpoint.xsd
       http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">

    <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>

    <cxf:cxfEndpoint name="serviceEndpoint" id="serviceEndpoint"
address="/incident"
                serviceClass="ru.transsys.testcxf.TestEndpointImpl"/>
                <!--endpointName="s:TestEndpointPort"-->
                <!--serviceName="s:TestEndpointService"-->
            <!--xmlns:s="http://test.transsys.ru" />-->
    

    <camel:camelContext
xmlns="http://activemq.apache.org/camel/schema/spring" id="camel"
useJmx="false">

        <route>
            <from ref="serviceEndpoint"/>
            <to id="aq1_In" uri="file:c:\temp\in"/>
        </route>
    </camel:camelContext>

    <!-- implementation of the webservice -->
    <bean id="testEndpoint" class="ru.transsys.testcxf.TestEndpointImpl"/>

</beans>

what do you think about it ?

thanks,
Evgeny

-- 
View this message in context: http://www.nabble.com/cxf-spring-configuration-%28camel-1.5.0%29-tp21627432s22882p21627432.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message