I am trying to build an rest api using jersey. But when I am trying to access the resource , getting the following error-
<blockquote>
  <p>java.lang.AbstractMethodError: javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
      javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:669)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
      org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:108)</p>
</blockquote>