title: javax.ws is not found inside a java servlet
body: <p>This is my imports that can work</p>
  
  <pre><code>import javax.servlet.ServletException;
  import javax.servlet.annotation.MultipartConfig;
  import javax.servlet.annotation.WebServlet;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
  
  import org.apache.tomcat.util.http.fileupload.servlet.ServletFileUpload;
  </code></pre>
  
  <p>And this is my servlet signature:</p>
  
  <pre><code>public class Multipart1 extends HttpServlet {
  </code></pre>
  
  <p>I am using tomcat 8.</p>
  
  <p>I want to use the <code>MediaType</code> enum (maybe it is a class i don't remember), and it is in the <code>javax.ws.rs.core</code> but the problem is that when i do import, the only thing that starts with <code>w</code> under <code>javax</code> is <code>websocket</code>, I couldn't find <code>ws</code></p>
  
  <p>What am i missing please?</p>
  
  <p>It seems i have to include some maven dependencies, but I thought that it is a javax so it should come all together in the jdk, right?</p>