I am trying to utilize hst:sitemapitem to expose rest service. Also i want this sitemap not to be specific to a channel, hence i am trying to add it under hst:default/hst:sitemap as “restapi” also i am adding property “hst:namedpipeline” and set it to “JaxrsRestPlainPipeline” but “http://localhost:8080/site/restapi” is giving me 404. can you please guide how can i do it?
Still, if i want to do the same using sitemapitem under hst:default and don’t use mount is it possible? The Idea is not make it specific to any domain(channel). I want to use it as used for webfiles and binaries.
I don’t think using sitemap items to expose REST services is correct by design. Generally sitemaps and the related request-processing are designed to deliver webpages (and/or anything related, like resources).
Regarding the webfiles/binaries, those sitemap items are using a specific properties, hst:containerresource = true . In this case the related request follow specific pipelines: not sure how they are related in this context.
What is the @Path annotation(s) in your Plain JAX-RS component? Is any operation matchable by a pathInfo such as /restapi/a/b/c?
Please note that you should include the sitemapitem path, /restapi, somehow either statically or regex way because the pathInfo under a sitemap item include the sitemap item path, unlike mount.