>>> Assuming that is the case you need to include the following:
>>> @ApplicationPath("/sakila")
>>> public class MyApplication extends Application {
>>> }
>>> An implementation of Application is required for inform Jersey what
>>> root resource and provider classes are registered. If you do not
>>> override any of the methods then all classes annotationed with @Path
>>> and @Provider will be included.
>> JSF registers FacesServlet by scanning through all the classes and
>> looking for @ManagedBean or any of the JSF annotations and then
>> automatically registered. I was wondering if Jersey could register the
>> servlet that way as well instead of providing an extra marker class.
>>
>
> A marker class, annotated with ApplicationPath, is required to specify
> the base path [*] of the URI:
>
> http://foo:8080/<context path>/<base path>/stuff
>
> We did not want to specify a default base path in JAX-RS.
Why a base path is required ?
Can it not be like:
http://foo:8080/<context path>/stuff ?
-Arun
>
> Paul.
>
> [*] the servlet URL pattern is derived form that
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
--
Need Application Server ? Download from http://glassfish.org
Blog: http://blogs.sun.com/arungupta