cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From miliev <mil...@vmware.com>
Subject CXF 2.4.1 No DestinationFactory was found for the namespace http://cxf.apache.org/transports/http
Date Thu, 21 Jul 2011 08:49:44 GMT
Hi, 

I'm trying to migrate from 2.3.0 to 2.4.1. after I updated dependencies like
neethi-3.0.0, xmlschema 2.0.. During CXFServlet initialization i got:

Caused by: org.apache.cxf.BusException: No DestinationFactory was found for
the namespace http://cxf.apache.org/transports/http.
	at
org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:126)
	at org.apache.cxf.endpoint.ServerImpl.initDestination(ServerImpl.java:87)
	at org.apache.cxf.endpoint.ServerImpl.<init>(ServerImpl.java:71)
	at
org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:150)

Any ideas ? My configuration is:

osgi/spring 

I have cxf-bundle-jaxrs-2.4.1.jar plus the configuration which use to work
for 2.3.0:

<?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:foo="http://cxf.apache.org/configuration/foo"
       xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">

    <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl"/>
    <bean id="org.apache.cxf.bus.spring.BusApplicationListener"
class="org.apache.cxf.bus.spring.BusApplicationListener"/>
    <bean id="org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor"
class="org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor"/>
    <bean id="org.apache.cxf.bus.spring.Jsr250BeanPostProcessor"
class="org.apache.cxf.bus.spring.Jsr250BeanPostProcessor"/>
    <bean id="org.apache.cxf.bus.spring.BusExtensionPostProcessor"
class="org.apache.cxf.bus.spring.BusExtensionPostProcessor"/>

    <bean class="org.apache.cxf.jaxrs.JAXRSBindingFactory"
      id="org.apache.cxf.jaxrs.JAXRSBindingFactory"
      lazy-init="true">
        <property name="activationNamespaces">
            <set>
                <value>http://apache.org/cxf/binding/jaxrs</value>
            </set>
        </property>
        <property name="bus" ref="cxf"/>
    </bean>

    <bean class="org.apache.cxf.transport.servlet.ServletTransportFactory"
      id="org.apache.cxf.transport.servlet.ServletTransportFactory">
        <property name="bus" ref="cxf"/>
        <property name="transportIds">
            <set>
                <value>http://cxf.apache.org/bindings/xformat</value>
                <value>http://schemas.xmlsoap.org/soap/http</value>
                <value>http://schemas.xmlsoap.org/wsdl/http/</value>
                <value>http://schemas.xmlsoap.org/wsdl/soap/http</value>
                <value>http://www.w3.org/2003/05/soap/bindings/HTTP/</value>
               
<value>http://cxf.apache.org/transports/http/configuration</value>
            </set>
        </property>
    </bean>


    <bean id="org.apache.cxf.resource.ResourceManager"
class="org.apache.cxf.bus.resource.ResourceManagerImpl">
       <property name="resolvers">
            <list>
                <bean class="org.apache.cxf.resource.ClasspathResolver"/>
                <bean class="org.apache.cxf.resource.ClassLoaderResolver"/>
                <bean
class="org.apache.cxf.bus.spring.BusApplicationContextResourceResolver"/>
            </list>
       </property>
       <property name="bus" ref="cxf"/>
    </bean>
    <bean id="org.apache.cxf.configuration.Configurer"
        class="org.apache.cxf.configuration.spring.ConfigurerImpl">
    </bean>

    <bean id="org.apache.cxf.binding.BindingFactoryManager"
class="org.apache.cxf.binding.BindingFactoryManagerImpl">
        <property name="mapProvider">
            <bean class="org.apache.cxf.configuration.spring.SpringBeanMap">
              <property name="type"
value="org.apache.cxf.binding.BindingFactory"/>
              <property name="idsProperty" value="activationNamespaces"/>
            </bean>
        </property>
        <property name="bus" ref="cxf"/>
    </bean>

    <bean id="org.apache.cxf.transport.DestinationFactoryManager"
class="org.apache.cxf.transport.DestinationFactoryManagerImpl">
        <property name="mapProvider">
            <bean class="org.apache.cxf.configuration.spring.SpringBeanMap">
              <property name="type"
value="org.apache.cxf.transport.DestinationFactory"/>
              <property name="idsProperty" value="transportIds"/>
            </bean>
        </property>
        <property name="bus" ref="cxf"/>
    </bean>

    <bean id="org.apache.cxf.transport.ConduitInitiatorManager"
class="org.apache.cxf.transport.ConduitInitiatorManagerImpl">
        <property name="mapProvider">
            <bean class="org.apache.cxf.configuration.spring.SpringBeanMap">
              <property name="type"
value="org.apache.cxf.transport.ConduitInitiator"/>
              <property name="idsProperty" value="transportIds"/>
            </bean>
        </property>
        <property name="bus" ref="cxf"/>
    </bean>

    <bean id="org.apache.cxf.phase.PhaseManager"
class="org.apache.cxf.phase.PhaseManagerImpl">
    </bean>

    <bean id="org.apache.cxf.workqueue.WorkQueueManager"
class="org.apache.cxf.workqueue.WorkQueueManagerImpl">
        <property name="bus" ref="cxf"/>
    </bean>

    <bean id="org.apache.cxf.buslifecycle.BusLifeCycleManager"
class="org.apache.cxf.buslifecycle.CXFBusLifeCycleManager">
        <property name="bus" ref="cxf"/>
    </bean>

    <bean id="org.apache.cxf.endpoint.ServerRegistry"
class="org.apache.cxf.endpoint.ServerRegistryImpl">
        <property name="bus" ref="cxf"/>
    </bean>

    <bean id="org.apache.cxf.endpoint.ServerLifeCycleManager"
class="org.apache.cxf.endpoint.ServerLifeCycleManagerImpl"/>
    <bean id="org.apache.cxf.endpoint.ClientLifeCycleManager"
class="org.apache.cxf.endpoint.ClientLifeCycleManagerImpl"/>

    <bean id="org.apache.cxf.transports.http.QueryHandlerRegistry"
class="org.apache.cxf.transport.http.QueryHandlerRegistryImpl">
        <property name="bus" ref="cxf"/>
        <property name="queryHandlers">
            <list>
                <bean
class="org.apache.cxf.transport.http.WSDLQueryHandler">
                    <property name="bus" ref="cxf"/>
                </bean>
            </list>
        </property>
    </bean>

    <bean id="org.apache.cxf.endpoint.EndpointResolverRegistry"
class="org.apache.cxf.endpoint.EndpointResolverRegistryImpl">
        <property name="bus" ref="cxf"/>
    </bean>

    <bean id="org.apache.cxf.headers.HeaderManager"
class="org.apache.cxf.headers.HeaderManagerImpl">
        <property name="bus" ref="cxf"/>
    </bean>

    <bean id="org.apache.cxf.endpoint.ServiceContractResolverRegistry"
class="org.apache.cxf.endpoint.ServiceContractResolverRegistryImpl">
        <property name="bus" ref="cxf"/>
    </bean>
</beans>


Thanks,

Martin

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-2-4-1-No-DestinationFactory-was-found-for-the-namespace-http-cxf-apache-org-transports-http-tp4618588p4618588.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message