Thank you guys for your answers. As requested I created a JIRA issue, althought I cannot assign you guys on it, not enough permissions. But here's the link:
https://issues.apache.org/jira/browse/CXF-2202 https://issues.apache.org/jira/browse/CXF-2202 I'll try the workaround, which is fine with me in the mean time. Regards, JS. Sergey Beryozkin-2 wrote: > > Hi JS > > As an initial workaround, you might want to try to add '/cxf' prefix to a > jaxrs:endpoint address : > > <jaxrs:endpoint address="/cxf"/> > > @Path("/top10") > public class TopTenRestService { > // methods > } > > This should make it possible for you to have TopTenRestService served by > other JAXRS impls if needed. > But please create a JIRA and Eoghan and myself will figure something out > on how to make SMX-to-CXF route working from users having > to worry about a /cxf prefix... > > cheers, Sergey > > ----- Original Message ----- > From: "Eoghan Glynn" <[email protected]> > To: <[email protected]> > Sent: Monday, May 04, 2009 10:07 PM > Subject: Re: Deploying REST service on CXF Transport for OSGi > > > Hi JS, > > I also ran into the need to include the leading "/cxf" in the @Path > annotation when putting together a CXF JAX-RS feature and demo for > SMX4 (patch submitted attached to > https://issues.apache.org/activemq/browse/SMX4-279). > > Obviously we discussed this same issue on previous threads on the SMX > and CXF mailing lists. > > Can you raise a JIRA for this and assign it to me? I'll investigate > putting in a work-around either in the SMX cxf-transports-osgi logic > that makes the target URI known to JAX-RS, or else in the URI pattern > matching logic in CXF JAX-RS layer itself. > > Cheers, > Eoghan > > 2009/5/4 jsbournival <[email protected]>: >> >> I have a serious issue that I want to discuss. >> >> I am developing rest services osgi bundles on fuse4/smx4 using the >> cxf-osgi >> transport. JAX-RS impl is obviously CXF, which is fine. But as I >> http://www.nabble.com/Re%3A-Deploying-REST-service-on-CXF-Transport-for-OSGi-fails-p23164246.html >> learned recently , I have to specify "/cxf" as part of my implementation >> @Path annotation, like this: >> >> >> @Path("/cxf/top10") >> public class TopTenRestService { >> // methods >> } >> >> >> I find this somewhat strange because it exposes (shall I say binds) the >> underlying JAX-RS implementation to my service class, which is the >> complete >> opposite of what the JAX-RS spec should provide. >> >> Again, maybe I just don't get it. Using it this way actually works, but >> there's something not right about how to specifiy the @Path. >> >> As a complement, here is my service configuration in my bundle' spring >> bean >> file. Maybe you'll find something I'm doing wrong: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> So, are there any plans to correct this? Is this an issue? If so, shall I >> expect a quick fix, or a long refactor phase? >> >> Thank you, >> >> JS. >> -- >> View this message in context: >> http://www.nabble.com/Deploying-REST-service-on-CXF-Transport-for-OSGi-tp23371703p23371703.html >> Sent from the cxf-user mailing list archive at Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/Deploying-REST-service-on-CXF-Transport-for-OSGi-tp23371703p23387290.html Sent from the cxf-user mailing list archive at Nabble.com.
