users@jersey.java.net

[Jersey] Re: Using Servlet Filters in a JerseyTest (2.x)

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Tue, 24 Dec 2013 12:10:40 -0500

Unfortunately, Jersey 2.x is still missing a lot of features from 1.x.
The specific issue you are referring to is covered by
https://java.net/jira/browse/JERSEY-2259

Please vote + watch it.

Gili

On 24/12/2013 11:09 AM, Nick Kleinschmidt wrote:
> I'm writing a test using JerseyTest v2.5 and the Grizzly container. My
> Resource depends on a filter that's defined in my web.xml, so the test
> is failing.
>
> Is there a way to configure a servlet filter when using JerseyTest?
>
> Even better, is there a way to use my web.xml to configure the servlet
> container?
>
> I originally asked this on StackOverflow, but no responses, feel free
> to answer there.
> http://stackoverflow.com/questions/20744996/filters-in-jerseytest-2-x
>
> --
> Nick Kleinschmidt
> Founder - Rassling Cats Software
> Cell: (301) 379-4473
> nick_at_rasslingcats.com <mailto:nick_at_rasslingcats.com>
> http://rasslingcats.com
> http://kleinsch.com