users@jersey.java.net

[Jersey] Re: javax.ws.rs.NotFoundException after upgrading Jersey to 2.17

From: Pritam Moodbidri <pritam_at_yahoo-inc.com>
Date: Wed, 3 Jun 2015 17:53:50 +0000 (UTC)

I started using "jersey-container-jetty-http" and "jersey-container-servlet-core", instead of "jersey-container-servlet", and I am not getting a 404 and NotFoundException anymore. 
Thanks - Pritam


     On Wednesday, June 3, 2015 10:05 AM, Marek Potociar <marek.potociar_at_oracle.com> wrote:
   

 I’m afraid we cannot provide any help just based on the information below. Can you please provide a test case that reproduces the behavior (i.e. works in 2.7 and does not in 2.17)?
Marek

On 26 May 2015, at 16:48, Pritam Moodbidri <pritam_at_yahoo-inc.com> wrote:
Hi,
I have upgraded the Jersey version of my project from 2.7 to 2.17 and I started having 404 errors for all the end points.
I am not able to figure out if I am missing anything. Has anyone else seen this problem as well?
javax.ws.rs.NotFoundException: HTTP 404 Not Found at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:302) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) at org.glassfish.jersey.internal.Errors.process(Errors.java:315) at org.glassfish.jersey.internal.Errors.process(Errors.java:297) at org.glassfish.jersey.internal.Errors.process(Errors.java:267) at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:288) at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1110) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:401) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
Thanks - Pritam