I'm curious... how does the current Jersey implementation automatically
locate all classes annotated with @Provider? Last I checked it wasn't easy
to do that sort of thing (finding all classes in the classpath or module).
Gili
Paul Sandoz wrote:
>
> Hi Gili,
>
> Section 2.3.2 of JSR-311 states:
>
> When using a JAX-RS aware servlet container, the servlet-class
> element of the web.xml descriptor
> SHOULD name the application-supplied subclass of Application.
>
> What is written in the article is not specified by JSR-311 and is non-
> standard behaviour.
>
> However, Jersey does not currently support what is specified above
> because we need to make modifications to the Servlet implementation.
>
> Paul.
>
> On Sep 29, 2008, at 9:31 PM, Gili wrote:
>
>>
>> Hi,
>>
>> I fired up Netbeans 6.5, created a RESTful web service and added the
>> following to my web.xml:
>>
>> <context-param>
>> <param-name>javax.ws.rs.core.Application</param-name>
>> <param-value>method.adcaster.network.Application</param-value>
>> </context-param>
>>
>> According to http://architects.dzone.com/articles/putting-java-rest
>> JAX-RS
>> should use this class to detect all my services, but Jersey seems to
>> ignore
>> it and parses *all* classes instead.
>>
>> Did I miss something?
>>
>> Thank you,
>> Gili
>> --
>> View this message in context:
>> http://n2.nabble.com/Jersey-ignores-javax.ws.rs.core.Application-tp1127216p1127216.html
>> Sent from the Jersey mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
>
--
View this message in context: http://n2.nabble.com/Jersey-ignores-javax.ws.rs.core.Application-tp1127216p1140761.html
Sent from the Jersey mailing list archive at Nabble.com.