You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Brad Harper <br...@gmail.com> on 2007/07/31 17:31:57 UTC

org.apache.cxf.BusException: No binding factory for namespace http://cxf.apache.org/bindings/http registered.

I know, I thought I was well beyond this type of exception.  I'm trying to
add RESTfulness to my currently deployed beans and the container is choking
on startup.  I'm importing the http bindings in the same manner as the
others.  Anyone see why this would fail?

Config:
    <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-extension-xml.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml
"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

    <!-- Local -->
    <bean id="PricingServiceImpl" class="
com.gdservices.service.thirdparty.PricingServiceImpl">
        <property name="daoFactory">
            <ref bean="hibernateDAOFactory"/>
        </property>
    </bean>

    <!-- SOAP -->
    <jaxws:endpoint
      id="pricingServiceSoap"
      implementor="#PricingServiceImpl"
      address="/pricingService" />

    <!-- POX -->
    <jaxws:endpoint
      id="pricingServicePox"
      implementor="#PricingServiceImpl"
      address="/pricingService.xml"
      bindingUri="http://cxf.apache.org/bindings/xformat" />

    <!-- REST -->
    <jaxws:endpoint
      id="pricingServiceRest"
      implementor="#PricingServiceImpl"
      address="/rest/pricingService"
      bindingUri="http://cxf.apache.org/bindings/http">
            <jaxws:serviceFactory>
                <bean class="
org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
                      <property name="wrapped" value="true" />
                    </bean>
            </jaxws:serviceFactory>
    </jaxws:endpoint>

Re: org.apache.cxf.BusException: No binding factory for namespace http://cxf.apache.org/bindings/http registered.

Posted by Brad Harper <br...@gmail.com>.
Ok,

bindingUri="http://cxf.apache.org/bindings/http"

needs to be replaced with:

bindingUri="http://apache.org/cxf/binding/http"

My apologies if this had already been discussed.

-bh

On 7/31/07, Brad Harper <br...@gmail.com> wrote:
>
> I know, I thought I was well beyond this type of exception.  I'm trying to
> add RESTfulness to my currently deployed beans and the container is choking
> on startup.  I'm importing the http bindings in the same manner as the
> others.  Anyone see why this would fail?
>
> Config:
>     <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- extension-xml.xml"/>
>     <import resource="classpath:META-INF/cxf/cxf-
> extension-http-binding.xml"/>
>     <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
>
>     <!-- Local -->
>     <bean id="PricingServiceImpl" class="
> com.gdservices.service.thirdparty.PricingServiceImpl">
>         <property name="daoFactory">
>             <ref bean="hibernateDAOFactory"/>
>         </property>
>     </bean>
>
>     <!-- SOAP -->
>     <jaxws:endpoint
>       id="pricingServiceSoap"
>       implementor="#PricingServiceImpl"
>       address="/pricingService" />
>
>     <!-- POX -->
>     <jaxws:endpoint
>       id="pricingServicePox"
>       implementor="#PricingServiceImpl"
>       address="/pricingService.xml"
>       bindingUri=" http://cxf.apache.org/bindings/xformat" />
>
>     <!-- REST -->
>     <jaxws:endpoint
>       id="pricingServiceRest"
>       implementor="#PricingServiceImpl"
>       address="/rest/pricingService"
>       bindingUri="http://cxf.apache.org/bindings/http">
>             <jaxws:serviceFactory>
>                 <bean class="
> org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">
>                       <property name="wrapped" value="true" />
>                     </bean>
>             </jaxws:serviceFactory>
>     </jaxws:endpoint>
>