Jersey and url-pattern.

From: Damian Steer <>
Date: Wed, 10 Feb 2010 14:01:59 +0000


I recently moved my application from jersey to 1.1.5, to remove
the need for appengine hacks.

I only have one resource:

public class Translator { ...

My web.xml says:


(This is the jersey servlet container)

In that seemed to be fine. I could GET and POST to translate,
but / routed to my index.html and all was well.

In 1.1.5 /translate 404s. Changing url-pattern to /* works, but it
breaks /. Is there a way to only pass /translate to jersey?

Thanks in advance,