Hi,

By default Servicemix will install CXF feature which have JAX-RS 
implementation, and resteasy is another JAX-RS implementation.
The error you encounter basically means CXF JAX-RS implementation was 
loaded(you can see it's kind of the JAVA SPI mechanism in OSGi container), but 
not the resteasy one.

You didn't say what's the exact Servicemix version you're using, if it's 4.5.x, 
you can uninstall "Apache CXF Runtime JAX-RS Frontend" bundle and install 
resteasy implementation as bundles so that the OSGi container can use resteasy 
as JAX-RS implementation.
-------------
Freeman(Yue) Fang

Red Hat, Inc. 
FuseSource is now part of Red Hat
Web: http://fusesource.com | http://www.redhat.com/
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
http://blog.sina.com.cn/u/1473905042
weibo: @Freeman小屋

www.camelone.org : The open source integration conference: 

On 2013-5-15, at 下午9:43, rsmaoui wrote:

> Hi Marco,
> 
> In fact, i need to call rest web service, i have an existing library which
> using restEasy. i should use this library on my servicemix project.
> 
> When i use it i receive the following error:
> [ERROR] java.lang.ClassCastException:
> org.apache.cxf.jaxrs.impl.RuntimeDelegateImpl cannot be cast to
> org.jboss.resteasy.spi.ResteasyProviderFactory 
> 
> 
> 
> 
> 
> --
> View this message in context: 
> http://servicemix.396122.n5.nabble.com/Implement-web-service-using-restEasy-tp5716731p5716737.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to