Hi JS,

I think you're tripping over the same issue that caused me some grief
a few days ago.

The problem is due to a minor divergence between the CXF HTTP
transport and the cxf-transport-osgi in ServiceMix.

I've submitted a patch with a fix, but I don't think this has been applied yet:

https://issues.apache.org/activemq/browse/SMX4-278

Once this patch is applied you'll be able to make further progress.

Cheers,
Eoghan


2009/4/21 jsbournival <[email protected]>:
>
> I had a couple of problems getting my Restful web services to deploy on SMX4,
> but now it seems more of a CXF problem.  When accessing my URL, I have this
> strange message in SMX4 console:
>
> http://localhost:8080/cxf/news/article/2
>
> 21 avr. 2009 15:59:36 org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> INFO: Interceptor has thrown exception, unwinding now null
>
> My service looks like this:
>
> @Path("/")
> public class ArticleRestService {
>
>       �...@get
>       �...@path("/article/{id}")
>       �...@producemime("text/plain")
>        public String getNewsArticle(@PathParam("id") String id) {
>              //...
>        }
> }
>
> And it is configured like this:
>
>        <jaxrs:server address="/news">
>                <jaxrs:serviceBeans>
>                        <ref bean="articleRestService" />
>                </jaxrs:serviceBeans>
>        </jaxrs:server>
>
> Is there something wrong with my service?  param binding maybe? Url mapping?
> I cannot find in SMX4 where the whole stack trace gets dumped. (log d only
> shows me the message mentionned at the top of this post).
>
> Other info:
> org.apache.servicemix.cxf.transport.osgi 4.0.0.fuse
> org.apache.cxf.cxf-bundle 2.1.3.fuse
> org.apache.servicemix.specs.jsr311-api-0.8 1.2.0.fuse
>
> Thank you.
>
> JS.
> --
> View this message in context: 
> http://www.nabble.com/Deploying-REST-service-on-CXF-Transport-for-OSGi-fails-tp23163948p23163948.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>

Reply via email to