You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Carlos Sierra (JIRA)" <ji...@apache.org> on 2019/04/24 16:50:00 UTC

[jira] [Commented] (ARIES-1912) aries-jaxrs-whiteboard 1.0.4 registers ServletContextHelper with context.path=/

    [ https://issues.apache.org/jira/browse/ARIES-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16825336#comment-16825336 ] 

Carlos Sierra commented on ARIES-1912:
--------------------------------------

Hi,

that servlet context helper might belong to the default application, as described here: https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html#service.jaxrs.whiteboard

you can check if that is the case if the value of the property "osgi.jaxrs.name" is ".default". In the case of the aries implementation you change its path from the root to a different one. You have two ways of doing so, using configuration or publishing a new application with name ".default" and the desired "osgi.jaxrs.application.base", as stated here: https://osgi.org/specification/osgi.cmpn/7.0.0/service.jaxrs.html#d0e133794.

If you choose to use configuration admin to configure the default whiteboard's default application you can create configuration with pid "org.apache.aries.jax.rs.whiteboard.default" and set the property "default.application.base" to the desired path and/or disable the default web by setting the property "default.web" to false.

I hope this helps.

Carlos.

> aries-jaxrs-whiteboard 1.0.4 registers ServletContextHelper with context.path=/
> -------------------------------------------------------------------------------
>
>                 Key: ARIES-1912
>                 URL: https://issues.apache.org/jira/browse/ARIES-1912
>             Project: Aries
>          Issue Type: Bug
>          Components: jax-rs-whiteboard
>    Affects Versions: jax-rs-whiteboard-1.0.4
>            Reporter: Nhut Thai Le
>            Priority: Major
>         Attachments: aries-jaxrs-whiteboard101vs104.PNG, aries-jaxrs-whiteboard104.PNG
>
>
> We have been using aries-jaxrs-whiteboard to run our REST api along with paxweb-extender-whiteboard for sometimes. Recently we upgraded aries-jaxrs-whiteboard from version 1.0.1 to 1.0.4 and noticed that some of our Servlets/ServletFilters are not working anymore. Digging into paxweb servlet registration process I found the new aries-jaxrs-whiteboard registers a cxf-servlet with url pattern /* which makes this servlet a default handler.
> Screenshots attached here show the different between aries-jaxrs-whiteboard 1.0.1 and 1.0.4 in terms of ServletContextHelper and Servlet registration.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)