title: The requested resource is not available in REST
body: <p>I have problem with my REST using <code>@FormParam</code>, please help me, I don't know why this project doesn't work with tomcat 7 and java 7 on Eclipse Luna :(</p>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xmlns="http://java.sun.com/xml/ns/javaee" 
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
  http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" 
  id="WebApp_ID" version="3.0"&gt;
  
    &lt;display-name&gt;Archetype Created Web Application&lt;/display-name&gt;
  
    &lt;servlet&gt;
          &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;
              com.sun.jersey.spi.container.servlet.ServletContainer
          &lt;/servlet-class&gt;
          &lt;init-param&gt;
               &lt;param-name&gt;com.sun.jersey.config.property.packages&lt;/param-name&gt;
               &lt;param-value&gt;com.adam.core&lt;/param-value&gt;
          &lt;/init-param&gt;
  
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;resteasy-servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/core&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>POM</strong></p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;com.adam.core&lt;/groupId&gt;
    &lt;artifactId&gt;RESTform&lt;/artifactId&gt;
    &lt;packaging&gt;war&lt;/packaging&gt;
    &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
    &lt;name&gt;RESTform Maven Webapp&lt;/name&gt;
    &lt;url&gt;http://maven.apache.org&lt;/url&gt;
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;junit&lt;/groupId&gt;
        &lt;artifactId&gt;junit&lt;/artifactId&gt;
        &lt;version&gt;3.8.1&lt;/version&gt;
        &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
  
       &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-server&lt;/artifactId&gt;
          &lt;version&gt;1.17.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-core&lt;/artifactId&gt;
          &lt;version&gt;1.17.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
          &lt;artifactId&gt;jersey-servlet&lt;/artifactId&gt;
          &lt;version&gt;1.17.1&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
    &lt;build&gt;
      &lt;finalName&gt;RESTform&lt;/finalName&gt;
    &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>UserForm.html</strong></p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
      &lt;h1&gt;Suma REST @FormQuery &lt;/h1&gt;
  
      &lt;form action="core/user/add" method="post"&gt;
          &lt;p&gt;
              Number 1: &lt;input type="text" name="number1" /&gt;
          &lt;/p&gt;
          &lt;p&gt;
              Number 2: &lt;input type="text" name="number2" /&gt;
          &lt;/p&gt;
          &lt;p&gt;
              Number 3: &lt;input type="text" name="number3" /&gt;
          &lt;/p&gt;
          &lt;p&gt;
              Number 4: &lt;input type="text" name="number4" /&gt;
          &lt;/p&gt;
          &lt;p&gt;
              Number 5: &lt;input type="text" name="number5" /&gt;
          &lt;/p&gt;
          &lt;input type="submit" value="Suma" /&gt;
      &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and <strong>UserService.java</strong></p>
  
  <pre><code>package com.adam.core;
  
  import javax.ws.rs.FormParam;
  import javax.ws.rs.POST;
  import javax.ws.rs.Path;
  
  import javax.ws.rs.core.Response;
  
  @Path("/user")
  public class UserService {
  
      @POST
      @Path("/add")
      public Response addUser(
          @FormParam("number1") int number1,
          @FormParam("number2") int number2,
          @FormParam("number3") int number3,
          @FormParam("number4") int number4,
          @FormParam("number5") int number5){
  
          return Response.status(200).entity("Suma : " + (number1+number2+number3+number4+number5)).build();
      }
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/pan9q.jpg" alt="layout"></p>
  
  <p>My console:</p>
  
  <pre><code>SEVERE: Servlet /RESTform threw load() exception
  java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1324)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1177)
      at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:550)
      at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:531)
      at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:150)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1041)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4932)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5218)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  </code></pre>