title: Jersey: org.glassfish.jersey.server.mvc cannot be resolved
body: <p>I want to use Jersey MVC in my project.
  I've never used Jersey MVC before.</p>
  
  <p>I'm working in:</p>
  
  <ul>
  <li>Eclipse (Version: Neon.1a Release (4.6.1))</li>
  </ul>
  
  <p>, using:</p>
  
  <ul>
  <li><p>Jersey 2.25.1</p></li>
  <li><p>Apache Tomcat 7.0.76.</p></li>
  </ul>
  
  <hr>
  
  <p>Here's the example I'm trying to run:</p>
  
  <p><strong>Hello.java</strong></p>
  
  <p><a href="https://i.stack.imgur.com/1OZbC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1OZbC.png" alt="enter image description here"></a></p>
  
  <p><strong>MyApp.java</strong></p>
  
  <p><a href="https://i.stack.imgur.com/pdvgi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pdvgi.png" alt="enter image description here"></a></p>
  
  <p><strong>NewFile.jsp</strong></p>
  
  <p><a href="https://i.stack.imgur.com/jUfjd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jUfjd.png" alt="enter image description here"></a></p>
  
  <p>I have downloaded jersey 2.25.1 from <a href="https://jersey.java.net/download.html" rel="nofollow noreferrer">here</a></p>
  
  <p><a href="https://i.stack.imgur.com/j3urB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j3urB.png" alt="enter image description here"></a></p>
  
  <p>and added all jar files in </p>
  
  <p><a href="https://i.stack.imgur.com/ZsktV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZsktV.png" alt="enter image description here"></a></p>
  
  <p>Here's how I call my web service:</p>
  
  <p><a href="https://i.stack.imgur.com/vEYMT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vEYMT.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>The underlined import line tells:</p>
  
  <p><a href="https://i.stack.imgur.com/XwEsL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XwEsL.png" alt="enter image description here"></a></p>
  
  <p>So this is the problem I want to solve.</p>
  
  <hr>
  
  <p>Because I have not found any information related to this problem I searched for jersey mvc related jar file. I found it <a href="http://central.maven.org/maven2/org/glassfish/jersey/ext/jersey-mvc/2.25.1/jersey-mvc-2.25.1.jar" rel="nofollow noreferrer">here</a>.</p>
  
  <p>I added <em>jersey-mvc-2.25.1.jar</em> in <em>lib</em> folder.</p>
  
  <p>So the package (and Viewable class) was found.</p>
  
  <p>But when I run on server I get the following stack trace:</p>
  
  <p><a href="https://i.stack.imgur.com/VnLBR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VnLBR.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/0pPIL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0pPIL.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/UeD4D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UeD4D.png" alt="enter image description here"></a></p>
  
  <p>Thank you in advance.</p>