On Dec 21, 2008, at 1:01 PM, Markus KARG wrote:
>
> to be able to support "unknown" XML extensions in our WebDAV code,
> we need to allow the JAX-RS developer to add classes to the
> JAXBContext. We developed a ContextResolver which works pretty well,
> and we want to have it configured and instantiated in
> Application.getSingletons(). But: Neither getClasses() nor
> getSingletons() is called EVER (we even added System.exit(0) but the
> program runs well... so we're pretty sure).
>
> Is that a bug in Jersey? Or what is our fault?
>
It depends on how you set up your web.xml. You may have configured it
to use one of the Jersey-supplied Application subclasses rather than
yours to take advantage of package scanning etc.
Marc.
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.