Hello Karaf 4.4.3 uses Pax Web 8 and Pax Web, while not containing any Karaf features related to JaxRS, provides integration tests using aries-jaxrs (OSGi CMPN specification implementation).
The Jetty-based test: https://github.com/ops4j/org.ops4j.pax.web/blob/web-8.0.19/pax-web-itest/pax-web-itest-container/pax-web-itest-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/whiteboard/WhiteboardR7JaxRsIntegrationTest.java Abstract definition of the test: https://github.com/ops4j/org.ops4j.pax.web/blob/web-8.0.19/pax-web-itest/pax-web-itest-container/pax-web-itest-container-common/src/main/java/org/ops4j/pax/web/itest/container/whiteboard/AbstractWhiteboardR7JaxRsIntegrationTest.java And what's most important - the list of bundles you need (so you can create your own feature): https://github.com/ops4j/org.ops4j.pax.web/blob/web-8.0.19/pax-web-itest/pax-web-itest-common/src/main/java/org/ops4j/pax/web/itest/AbstractControlledTestBase.java#L667-L725 I know this is rtfs approach to answer your question, but that's how it is ;) kind regards Grzegorz Grzybek śr., 12 kwi 2023 o 07:46 안정필 <[email protected]> napisał(a): > Hi, Karaf Users and Developers. > I'm a user who likes karaf and osgi. > > Can I use Jakarta Restful WebService(OSGi 8.1) on Karaf ? > I'm using Karaf 4.4.3. > > It seems like that karaf default cxf-jaxrs feature 3.5.5 supports > javax.ws.rs, not jakarta.ws.rs. > cxf 4.0 changed to jakarta but temporarily removed osgi module > till osgi supports jakarta, as they say. > I tried several things but the result was not good. (eclipse Jersey 3.1, > resteasy 6.2.3.Final, etc.) > > Any Idea? > > Thanks in advance for any comments. > > Regards > Jeongpil An (call, ajp) >
