title: JAX-RS exception with Tomcat
body: <p><strong>When starting the a servlet (from eclipse), I'm getting the following error:</strong>
  It's tomcat 7 and the servlet is REST.</p>
  
  <pre><code>INFO: validateJarFile(C:\beezer\WebServerWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\BeezerServer\WEB-INF\lib\geronimo-j2ee_1.4_spec-1.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
  448 [localhost-startStop-1] ERROR org.apache.wink.server.internal.servlet.RestServlet - com.test.AddressBookApplication&lt;br /&gt;
  java.lang.ClassNotFoundException: com.test.AddressBookApplication&lt;br /&gt;
      at
  org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1711)&lt;br/&gt;
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1556)&lt;br/&gt;
      at java.lang.Class.forName0(Native Method)&lt;br/&gt;
      at java.lang.Class.forName(Class.java:169)&lt;br/&gt;
      at org.apache.wink.server.internal.servlet.RestServlet.getApplication(RestServlet.java:144)&lt;br/&gt;
      at org.apache.wink.server.internal.servlet.RestServlet.createRequestProcessor(RestServlet.java:105)&lt;br/&gt;
      at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:81)&lt;br/&gt;
      at javax.servlet.GenericServlet.init(GenericServlet.java:160)&lt;br/&gt;
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)&lt;br/&gt;
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)&lt;br/&gt;
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)&lt;br/&gt;
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)&lt;br/&gt;
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)&lt;br/&gt;
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)&lt;br/&gt;
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)&lt;br/&gt;
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)&lt;br/&gt;
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)&lt;br/&gt;
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)&lt;br/&gt;
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)&lt;br/&gt;
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)&lt;br/&gt;
      at java.lang.Thread.run(Thread.java:662)&lt;br/&gt;
  Aug 30, 2012 7:49:41 PM org.apache.catalina.core.ApplicationContext log&lt;br/&gt;
  INFO: Marking servlet JAX-RS Servlet as unavailable&lt;br/&gt;
  Aug 30, 2012 7:49:41 PM org.apache.catalina.core.StandardContext loadOnStartup&lt;br/&gt;
  SEVERE: Servlet /BeezerServer threw load() exception&lt;br/&gt;
  javax.servlet.UnavailableException: com.test.AddressBookApplication&lt;br/&gt;
      at org.apache.wink.server.internal.servlet.RestServlet.init(RestServlet.java:91)&lt;br/&gt;
      at javax.servlet.GenericServlet.init(GenericServlet.java:160)&lt;br/&gt;
      at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)&lt;br/&gt;
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)&lt;br/&gt;
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)&lt;br/&gt;
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)&lt;br/&gt;
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)&lt;br/&gt;
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)&lt;br/&gt;
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)&lt;br/&gt;
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)&lt;br/&gt;
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)&lt;br/&gt;
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)&lt;br/&gt;
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)&lt;br/&gt;
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)&lt;br/&gt;
      at java.lang.Thread.run(Thread.java:662)&lt;br/&gt;
  Aug 30, 2012 7:49:41 PM org.apache.coyote.AbstractProtocol start
  INFO: Starting ProtocolHandler ["http-bio-8080"]
  </code></pre>
  
  <p><strong>My web.XML:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;br/&gt; &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee&lt;br/&gt; http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"&gt;
    &lt;display-name&gt;BeezerServer&lt;/display-name&gt;
      &lt;servlet&gt;
        &lt;description&gt;JAX-RS Tools Generated - Do not modify&lt;/description&gt;
        &lt;servlet-name&gt;JAX-RS Servlet&lt;/servlet-name&gt;
        &lt;servlet-class&gt;org.apache.wink.server.internal.servlet.RestServlet&lt;/servlet-class&gt;
        &lt;init-param&gt;
          &lt;param-name&gt;javax.ws.rs.Application&lt;/param-name&gt;
          &lt;param-value&gt;com.test.AddressBookApplication&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;JAX-RS Servlet&lt;/servlet-name&gt;
        &lt;url-pattern&gt;/jaxrs/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p></p>
  
  <p>Does anyone has a clew?
  thanks!</p>