Hi there,
This is an easy one, it's a copy and paste error :-)
Try
<import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"/>
instead of
<import resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml"/>
Cheers, Sergey
----- Original Message -----
From: "John-M Baker" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, April 29, 2008 3:19 PM
Subject: Re: CXF 2.1, Rest and Spring configuration
Sergey,
So I've now got a system running fine with jaxrs and the standalone server
option works as expected. However I've used the example at the bottom of
this page:
http://cwiki.apache.org/CXF20DOC/jax-rs-jsr-311.html
and produced this Spring context:
<?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:jaxrs="http://cxf.apache.org/jaxrs"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxrs
http://cxf.apache.org/schemas/jaxrs.xsd">
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import
resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<jaxrs:server id="cxf.server.ApplicationConfigurationService"
address="/">
<jaxrs:serviceBeans>
<bean
class="com.db.websso.rest.server.ApplicationConfigurationServiceImpl" />
</jaxrs:serviceBeans>
</jaxrs:server>
</beans>
which results in this exception:
org.apache.cxf.BusException: No binding factory for namespace
http://apache.org/cxf/binding/jaxrs registered.
at
org.apache.cxf.binding.BindingFactoryManagerImpl.getBindingFactory(
BindingFactoryManagerImpl.java:91)
at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.createBindingInfo(
JAXRSServerFactoryBean.java:208)
Is the webpage out of date?
John Baker
--
Web SSO
IT Infrastructure
Deutsche Bank London
URL: http://websso.cto.gt.intranet.db.com
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland