Od: Sergey Beryozkin [[email protected]] Hi On 17/09/13 16:36, Adam Jabłoński wrote: > Hello, I want to expose REST API using Karaf 2.2.8 and CXF 2.7.6. > The service beans are located in two separate osgi bundles. > And I want them deployed to http://localhost/1/first_bundle and > http://localhost/1/second_bundle > > Each has spring xml configuration file containing jaxrs:server tag > > <jaxrs:server id="firstBundle" address="/first_bundle"> > <jaxrs:serviceBeans> > <ref bean="A" /> > <ref bean="B" /> > </jaxrs:serviceBeans> > </jaxrs:server> > > <jaxrs:server id="secondBundle" address="/second_bundle"> > <jaxrs:serviceBeans> > <ref bean="C" /> > </jaxrs:serviceBeans> > </jaxrs:server> > > I have $KARAF_HOME/etc/org.apache.cxf.osgi.cfg file with contents: > org.apache.cxf.servlet.context=/1 > > I see only /first_bundle. Is there additional configuration necessary, or > must I use single bundle for configuration? I'm not sure at the moment why it does not work, will try to do a test asap.
Thank you for quick reply. I've found out that one of service configuration xml was in bad path, and Karaf could not process it. Everything works as it should. Thanks! -- Best regards, Adam Jabłoński [Wirtualna Polska] <http://www.wp.pl> Znajdziesz nas tutaj: [Wp na Facebooku] <https://www.facebook.com/WirtualnaPolska> [Wp na Twitterze] <https://twitter.com/wirtualnapolska> [Wp na SlideShare] <http://www.slideshare.net/wirtualnapolska> [Wp w Google+] <https://plus.google.com/+wppl> [Wp na YouTube] <https://www.youtube.com/user/wptvwppl> "WIRTUALNA POLSKA" Spółka Akcyjna z siedzibą w Gdańsku przy ul. Traugutta 115 C, wpisana do Krajowego Rejestru Sądowego - Rejestru Przedsiębiorców prowadzonego przez Sąd Rejonowy Gdańsk - Północ w Gdańsku pod numerem KRS 0000068548, o kapitale zakładowym 67.980.024,00 złotych opłaconym w całości oraz Numerze Identyfikacji Podatkowej 957-07-51-216.
