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-tp23164054p23164054.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to