I have one normal servlet and one jersey specific REST related servlet i.e.ServletContainer configured in web.xml. Case 1 - Url pattern for normal servlet is "/login" Url pattern for other REST servlet is "/" In this case all request will got REST servlet. Request for login also goes to tht Servlet only. Case 2 - If Url pattern for REST servlet changed to "/rest/ " (which root path of my test resource class) And Url pattern for normal servlet as it was "/login" Only normal request for /login works, but any REST requests doesn't work.
Can anyone help me in this??