title: Deploy Jersey web services in referenced .jar
body: <p>I've created a .jar with some Jersey web services in it, and I want to import that .jar in other projects. Those web services work like a handler/proxy for local code to link with a remote service provider.</p>
  
  <p>So, I import the .jar document in a project and configure <code>web.xml</code> like this:</p>
  
  <pre><code>&lt;servlet&gt;
    &lt;servlet-name&gt;Services&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.package.for.services.in.current.project, com.package.for.services.in.jar&lt;/param-value&gt;
    &lt;/init-param&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
    &lt;servlet-name&gt;Services&lt;/servlet-name&gt;
    &lt;url-pattern&gt;/s/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>But when I run the project, the web services specified in <code>com.package.for.services.in.jar</code> aren't found.</p>
  
  <p>The .jar document is in build path. What am I doing wrong? Isn't possible to run web services from an external library?</p>
  
  <p>Thanks in advance.</p>