title: Trying to create a REst Service using Jersey
body: <p>I am following <a href="http://www.vogella.com/articles/REST/article.html#first" rel="noreferrer">this</a> tutorial to create a REst Service using Jersey.</p>
  
  <p>Sometimes i fail to understand fully what the author of the tutorial means but these are the steps that i have followed so far :</p>
  
  <p><strong>1)</strong> <em>Created a dynamic web project and named it</em> : <em><code>de.vogella.jersey.first</code></em></p>
  
  <p><strong>2)</strong> <em>Installed Maven dependencies on eclipse</em></p>
  
  <p><strong>3)</strong> <em>Converted my project to a Maven project (that means created a pom.xml file)</em></p>
  
  <p><strong>4)</strong> <em>Added the necessary dependencies in <code>pom.xml</code> so that i can use jersey without having to manually add the jar files. I added the following xml :</em></p>
  
  <pre><code>&lt;dependencies&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;/dependencies&gt;
  </code></pre>
  
  <p><strong>5)</strong> <em>The author suggests to create a java class and gives some code. I can only assume that he wants us to create a new package in the src folder , name it <code>de.vogella.jersey.first</code> and then create a java class and name it <code>Hello</code> and place the code there. Thats what i did.</em></p>
  
  <p><strong>6)</strong> <em>Then he suggests to open the <code>web.xml</code> file. Theres not such a file in the project though. So i go ahead and create such a file in the <code>WebContent/WEB-INF/lib</code> path. I place the code that he suggest.</em></p>
  
  <p><strong>7)</strong> <em>Next is the step that i fail to understand most. He talks about the <code>web.xml</code> that we just added and more specifically he states:</em></p>
  
  <p><strong>"The parameter "com.sun.jersey.config.property.package" defines in which package jersey will look for the web service classes. This property must point to your resources classes. "</strong></p>
  
  <p><strong>8)</strong> <em>Last step is open the URL <code>http://localhost:8080/de.vogella.jersey.first/rest/hello</code> in my browser. However i get <code>HTTP Status 404 - /de.vogella.jersey.first/rest/hello</code></em></p>
  
  <hr>
  
  <p>With what shall i replace exactly the <code>com.sun.jersey.config.property.package</code> ?</p>
  
  <p>Are the steps that i have followed till now correct , or i misinterpreted something?</p>