Hi,
sorry for a delay, I was on a break for 2 weeks and though I did check
emails, I missed this one. Did you get it working ? For some reasons the
extensions located on META-INF/cxf are not picked up in your case.
Are you using Maven ? If yes then may be you can check if there's any
difference in your own pom and the one shipped with the demo ?
cheers, Sergey
Kruntz wrote:
>
> I'm trying to implement a restful http binding service with cxf 2.2.2 and
> jetty embedded.
> This is what I'm doing:
>
> JAXRSServerFactoryBean sfSoggetto;
> sfSoggetto = new JAXRSServerFactoryBean();
> sfSoggetto.setResourceClasses(SoggettoService.class);
> sfSoggetto.setResourceProvider(SoggettoService.class, new
> SingletonResourceProvider(new SoggettoService()));
> sfSoggetto.setBindingId(JAXRSBindingFactory.JAXRS_BINDING_ID);
> sfSoggetto.setAddress("http://localhost:9000/");
> sfSoggetto.create();
>
> I keep getting this error:
> org.apache.cxf.BusException: No binding factory for namespace
> http://apache.org/cxf/binding/jaxrs registered.
>
> This is the stack trace:
> at
> org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(BindingFactoryManagerImpl.java:91)
> at
> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createBindingInfo(AbstractJAXRSFactoryBean.java:133)
> at
> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpointInfo(AbstractJAXRSFactoryBean.java:113)
> at
> org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean.createEndpoint(AbstractJAXRSFactoryBean.java:159)
> at
> org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:83)
>
> My code is almost identical to the "jax_rs/basic" sample, and I really
> don't understand what I'm doing wrong...
>
> Any takers?
>
> Thanks in advance.
>
--
View this message in context:
http://www.nabble.com/-CXF-2.2.2--JAXRS--No-binding-factory-for-namespace-http%3A--apache.org-cxf-binding-jaxrs-registered.-tp23880630p23923551.html
Sent from the cxf-user mailing list archive at Nabble.com.