users@jersey.java.net

Re: Custom _at_Provider

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 08 Jan 2008 17:01:01 +0100

Jose Antonio Illescas del Olmo wrote:
> FIXED,
>

Great!


> I change javax.ws.rs.ext.MessageBodyWriter file
>
> *from:* [MY_WAR]/META-INF/services (META-INF of MY_WAR)
> *to:* [MY_WAR]/WEB-INF/lib/some.jar -> /META-INF/services (META-INF of
> some.jar on MY_WAR)
>
> and works fine!
>
> note: Jersey ignores /META-INF/services/ of WAR files
>

IIUC i don't think that location is available to class loaders, or at
least the class loader obtained from:

   Thread.currentThread().getContextClassLoader()

and provided by the Servlet container.

To access that location i think one has to use the ServletContext.

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109