On Dec 28, 2010, at 9:24 AM, Adam Walczak wrote:
>> @Path("b")
>> public class B extends A {
>> }
>>
>> C.java:
>> @Path("c")
>> public class C extends A {
>> }
>
>
> try: @Path("/b"), @Path("/c")
> instead of: @Path("b"), @Path("c")
>
The leading "/" is redundant and it does not matter if it is present
or not.
Try enabling tracing and logging:
<init-param>
<param-
name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name>
<param-
value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
</init-param>
<init-param>
<param-
name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name>
<param-
value>com.sun.jersey.api.container.filter.LoggingFilter</param-value>
</init-param>
<init-param>
<param-name>com.sun.jersey.config.feature.Trace</param-name>
<param-value>true</param-value>
</init-param>
Also check the server logs to see if any warnings/errors are produced
on deployment.
Paul.