[Jersey] Can _at_Context annotation be used be used in any class?

From: Farrukh Najmi <>
Date: Fri, 17 Feb 2012 09:03:37 -0500

Hi Guys,

I am trying to use the "@Context UriInfo uriInfo;" annotation in a
ObjectWRapper impl class for a freemarker template and finding that it
is not being set.
The package for the class is declared in the init property
"" for the
com.sun.jersey.spi.spring.container.servlet.SpringServlet used by the
webapp for my REST endpoint.

Is there some other restriction that could be preventing jersey runtime
to be setting the "@Context UriInfo uriInfo;"?

Thanks for any guidance on this.

Farrukh Najmi