You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Rob Walker (JIRA)" <ji...@apache.org> on 2016/01/07 10:17:39 UTC

[jira] [Commented] (FELIX-4706) Provide way to override Jetty's error pages for status other than 200

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

Rob Walker commented on FELIX-4706:
-----------------------------------

May not be relevant for you, but there's a very handy JAX-RS OSGi implementation here using Jersey:

https://github.com/hstaudacher/osgi-jax-rs-connector

We've been experimenting with it for a couple of weeks now on a very old version of Felix and Jetty (Servlet 2.x based) - and even against that old code it's working pretty well for us. Makes it very easy to expose OSGi services via as a REST API.


> Provide way to override Jetty's error pages for status other than 200
> ---------------------------------------------------------------------
>
>                 Key: FELIX-4706
>                 URL: https://issues.apache.org/jira/browse/FELIX-4706
>             Project: Felix
>          Issue Type: Wish
>          Components: HTTP Service
>            Reporter: Sarwar Bhuiyan
>            Priority: Minor
>
> I'm trying to use JAX-RS and Jackson in Felix and have so far been successful in registering Resource classes which respond to requests but one problem I have is that when the error response body needs to be set, Jetty is showing its own error html pages and not the entity I'm setting in the body. Is there a way of turning that off or overriding that behaviour?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)