Hi Eoghan

thanks for you help with addressing this issue.
By the way, is there any specific reason why the address values specified in in 
jaxrs:server, like this one

<jaxrs:server address="/news">

can't be picked up when CXF is used in SMX ?

cheers, Sergey


Hi JS,

BTW in addition to the fix for SMX4-278, I believe you'll also need to
change your @Path annotation from:

@Path("/")

to:

@Path("/cxf/news")

However that issue would be masked by the NPE that's causing the
dispatch to unwind from JAXRSInInterceptor.preprocess().

BTW I've also got an examples-cxf-jaxrs demo in the works.

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



Reply via email to