[ https://issues.apache.org/jira/browse/KARAF-7675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré reassigned KARAF-7675: ------------------------------------------- Assignee: Jean-Baptiste Onofré > Overlapped context path conflict between WAB and REST bundles > ------------------------------------------------------------- > > Key: KARAF-7675 > URL: https://issues.apache.org/jira/browse/KARAF-7675 > Project: Karaf > Issue Type: Bug > Components: karaf > Affects Versions: 4.4.3 > Reporter: Stephane Gibier > Assignee: Jean-Baptiste Onofré > Priority: Major > > Before karaf-4.4, it was possible to implement a REST bundle mapped to > "/example/api" root context path beside a WAB bundle mapped to inner > "/example" context path : REST services are available at "/example/api" from > any "/example" frontend resource hosted in the WAB. > Since karaf-4.4, the services provided by the REST bundle are no longer > available (HTTP 404). > This issue is easy to reproduce with the karaf-rest-example and > karaf-war-example features provided by the karaf stock distribution and a > customized etc/org.apache.cxf.osgi.cfg configuration file : > {noformat} > org.apache.cxf.servlet.context = /example/api > org.apache.cxf.servlet.hide-service-list-page = false > {noformat} > *Test with karaf-4.3.9 :* > {noformat} > karaf@root()> feature:install http http-whiteboard > karaf@root()> feature:repo-add > mvn:org.apache.karaf.examples/karaf-rest-example-features/4.3.9/xml > karaf@root()> feature:repo-add > mvn:org.apache.karaf.examples/karaf-war-example-features/4.3.9/xml > karaf@root()> feature:install karaf-rest-example-blueprint > karaf@root()> feature:install karaf-war-example{noformat} > The REST services list page is available at > [http://localhost:8181/example/api] and the booking services examples are > available too. > *Test with karaf-4.4.3 :* > {noformat} > karaf@root()> feature:install http http-whiteboard pax-web-karaf > karaf@root()> feature:repo-add > mvn:org.apache.karaf.examples/karaf-rest-example-features/4.4.3/xml > karaf@root()> feature:repo-add > mvn:org.apache.karaf.examples/karaf-war-example-features/4.4.3/xml > karaf@root()> feature:install karaf-rest-example-blueprint > karaf@root()> feature:install karaf-war-example{noformat} > The REST services list page is not found (HTTP 404) at > [http://localhost:8181/example/api] and all others booking services examples > are unavailable too. The karaf.log does not provide any explanation about it. > Since karaf-4.4, there is now a conflict between the CXF root context path > and the default WAB context path. Is it intentional ? Should REST and WAB > contexts be adjusted in order to work together ? -- This message was sent by Atlassian Jira (v8.20.10#820010)