[ 
https://issues.apache.org/jira/browse/CXF-550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12509855
 ] 

Christian Blavier commented on CXF-550:
---------------------------------------

I have the same problem : with following spring configuration

 <bean id="JaxWsServiceFactoryBean" 
class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean"> 
  <property name="wrapped" value="true"/> 
 </bean> 

   <jaxws:endpoint id="restfulServer" 
              implementor="#bookService" 
              address="/BookService"
              bindingUri="http://apache.org/cxf/binding/http";>
     <jaxws:serviceFactory> 
         <ref bean="JaxWsServiceFactoryBean"/> 
     </jaxws:serviceFactory> 
  </jaxws:endpoint> 

I can't get my Restful web-service to work (I get a Could not resolve a binding 
for http://apache.org/cxf/binding/http error on jetty startup)


> restful_http_binding samples does not work
> ------------------------------------------
>
>                 Key: CXF-550
>                 URL: https://issues.apache.org/jira/browse/CXF-550
>             Project: CXF
>          Issue Type: Bug
>          Components: Build system
>    Affects Versions: 2.0-RC
>         Environment: on linux platform
>            Reporter: Bozhong Lin
>            Assignee: Freeman Fang
>             Fix For: 2.0-RC
>
>
> Following error is spit from server:
>     [java] Exception in thread "main" 
> org.apache.cxf.service.factory.ServiceConstructionException: Could not 
> resolve a binding for http://apache.org/cxf/binding/http
>      [java]     at 
> org.apache.cxf.frontend.AbstractEndpointFactory.createBindingInfo(AbstractEndpointFactory.java:241)
>      [java]     at 
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.createBindingInfo(JaxWsServerFactoryBean.java:105)
>      [java]     at 
> org.apache.cxf.frontend.AbstractEndpointFactory.createEndpointInfo(AbstractEndpointFactory.java:175)
>      [java]     at 
> org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:100)
>      [java]     at 
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:84)
>      [java]     at com.acme.customer.Main.createRestService(Main.java:79)
>      [java]     at com.acme.customer.Main.main(Main.java:55)
>      [java] Caused by: org.apache.cxf.BusException: No binding factory for 
> namespace http://apache.org/cxf/binding/http registered.
>      [java]     at 
> org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:78)
>      [java]     at 
> org.apache.cxf.frontend.AbstractEndpointFactory.createBindingInfo(AbstractEndpointFactory.java:236)
>      [java]     ... 6 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to