I have been searching for a solution to this problem with no success. The latest posts I found date back to 2010. I am using jersey 1.12 with embedded grizzly 2.2.1.

If I understood correctly, unless I deploy my jersey resources under a servlet container I cannot inject HttpServletRequest in them. Is there a workaround?