did you try prefix `servlet.init.`? - Ray
On Fri, Jan 10, 2020 at 1:55 PM Markus Rathgeb <[email protected]> wrote: > I use an application similar to this one: > > @Component(service = Application.class) > @JaxrsName(RESTConstants.JAX_RS_NAME) > @JaxrsApplicationBase("rest") > public class RESTApplicationImpl extends Application { > } > > The resource looks similar to this one: > > @Component(service = { RESTResource.class }) > @JaxrsResource > @JaxrsName("services") > @JaxrsApplicationSelect("(" + JaxrsWhiteboardConstants.JAX_RS_NAME + "=" + > RESTConstants.JAX_RS_NAME + ")") > @JSONRequired > @Path("/services") > public class RESTResource { > ... > } > > I already tried to use configurations for the application component, but > did not succeed. > > > Am Fr., 10. Jan. 2020 um 22:47 Uhr schrieb Raymond Auge < > [email protected]>: > >> Do you happen to have a custom whiteboard instance with a factory pid? >> >> - Ray >> >> On Fri, Jan 10, 2020 at 1:45 PM Markus Rathgeb <[email protected]> >> wrote: >> >>> I already did as I found this mechanism to solve >>> https://issues.apache.org/jira/browse/CXF-8190. >>> >>> I tried "hide-service-list-page" as this does not work I also tried >>> "context.init.hide-service-list-page" as I hoped it will works similar >>> to the HTTP Whiteboard property. >>> But it does not work. >>> I also tried to overwrite the getProperties method of the Application. >>> So, I need a way to set the servlet context init parameter. >>> >>> As it is about migration of an existing code base, I cannot change the >>> endpoints name as a workaround. >>> I need a solution to use "services". :( >>> >>> Am Fr., 10. Jan. 2020 um 22:38 Uhr schrieb Raymond Auge < >>> [email protected]>: >>> >>>> Did you try creating a configuration with pid >>>> `org.apache.aries.jax.rs.whiteboard.default` and setting the property >>>> there? Those properties of the default whiteboard will be inherited by that >>>> servlet. >>>> >>>> (A nice way is with configurator.) >>>> >>>> - Ray >>>> >>>> On Fri, Jan 10, 2020 at 1:15 PM Markus Rathgeb <[email protected]> >>>> wrote: >>>> >>>>> Hi, >>>>> >>>>> I am currently migrate an existing code base to the JAX-RS Whiteboard. >>>>> I did it already a few times but currently I am really stuck. >>>>> >>>>> I already read the involved code base but I cannot find a solution... >>>>> >>>>> There is an existing REST endpoint "services" that needs to be >>>>> migrated. >>>>> But I cannot access that REST endpoint. >>>>> >>>>> If I access "/services" CXF provides its own response. >>>>> I identified that class: >>>>> https://github.com/apache/cxf/blob/cxf-3.2.5/rt/transports/http/src/main/java/org/apache/cxf/transport/servlet/ServletController.java >>>>> >>>>> All I need to do (it sounds such easy) is to set the init parameter of >>>>> the servlet context with name "hide-service-list-page" to "false". >>>>> But I did not found any way to to it. >>>>> >>>>> So the question is rather simple: >>>>> How can I use the rest endpoint "services" for a custom implementation >>>>> with Aires' JAX-RS Whiteboard implementation? >>>>> >>>>> Please help >>>>> >>>> >>>> >>>> -- >>>> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile> >>>> (@rotty3000) >>>> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com> >>>> (@Liferay) >>>> >>> >> >> -- >> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile> >> (@rotty3000) >> Senior Software Architect *Liferay, Inc.* <http://www.liferay.com> >> (@Liferay) >> > -- *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile> (@rotty3000) Senior Software Architect *Liferay, Inc.* <http://www.liferay.com> (@Liferay)
