On Dec 22, 2008, at 4:07 PM, Daniel Manzke wrote:
>
> thanks for your answer, but we tested it with the built in http-
> server in Java 6. Any ideas what we could do or does it only works
> in a real servlet container?
>
It should work with any container, can you post the code you are using
to obtain and publish the HTTP endpoint.
Marc.
>
> 2008/12/22 Marc Hadley <Marc.Hadley_at_sun.com>
> 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.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>
>
>
>
> --
> Mit freundlichen Grüßen
>
> Daniel Manzke
---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.