title: JBoss RESTEasy Unable to scan WEB-INF for JAX-RS annotations
body: <p>I just added JAX-RS web services to my project in MyEclipse and did my export/deploy to jboss 6/jdk 1.6, but I keep getting this error and I have no clue why it comes up.  Here's the first few lines of this stack trace:</p>
  
  <pre><code>2011-05-03 21:33:46,716 INFO  [org.jboss.resteasy.integration.deployers.ResteasyIntegrationDeployer] (HDScanner) *** Adding JAX-RS resource classes: com.mycompany.CategoriesResource
  2011-05-03 21:33:47,180 INFO  [org.jboss.web.tomcat.service.deployers.TomcatDeployment] (HDScanner) deploy, ctxPath=/mypath
  2011-05-03 21:33:47,330 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/mypath]] (HDScanner) Exception sending context initialized event to listener instance of class org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap: java.lang.RuntimeException: Unable to scan WEB-INF for JAX-RS annotations, you must manually register your classes/resources
  </code></pre>
  
  <p>Has anyone had trouble with this before?  The project was created in MyEclipse with Struts and Web Service Capabilities if that helps.  I honestly don't know what else I can try considering I just recently deployed a similar configuration without any problems.</p>
  
  <p>Thanks!</p>
  
  <p>Here is my web.xml</p>
  
  <p>http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
      
      
          action
          org.apache.struts.action.ActionServlet
          
              config
              /WEB-INF/struts-config.xml
          
          
              debug
              3
          
          
              detail
              3
          
          0
      </p>
  
  <pre><code>&lt;listener&gt;
      &lt;listener-class&gt;org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap&lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;servlet&gt;
      &lt;display-name&gt;API&lt;/display-name&gt;
      &lt;servlet-name&gt;API&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher&lt;/servlet-class&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;API&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/api/*&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;resteasy.scan&lt;/param-name&gt;
      &lt;param-value&gt;true&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;context-param&gt;
      &lt;param-name&gt;resteasy.servlet.mapping.prefix&lt;/param-name&gt;
      &lt;param-value&gt;/api&lt;/param-value&gt;
  &lt;/context-param&gt;
  &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;action&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  
  &lt;jsp-config&gt;
      &lt;taglib&gt;
          &lt;taglib-uri&gt;http://struts.apache.org/tags-bean&lt;/taglib-uri&gt;
          &lt;taglib-location&gt;/WEB-INF/struts-bean.tld&lt;/taglib-location&gt;
      &lt;/taglib&gt;
      &lt;taglib&gt;
          &lt;taglib-uri&gt;http://struts.apache.org/tags-html&lt;/taglib-uri&gt;
          &lt;taglib-location&gt;/WEB-INF/struts-html.tld&lt;/taglib-location&gt;
      &lt;/taglib&gt;
      &lt;taglib&gt;
          &lt;taglib-uri&gt;http://struts.apache.org/tags-logic&lt;/taglib-uri&gt;
          &lt;taglib-location&gt;/WEB-INF/struts-logic.tld&lt;/taglib-location&gt;
      &lt;/taglib&gt;
      &lt;taglib&gt;
          &lt;taglib-uri&gt;http://struts.apache.org/tags-tiles&lt;/taglib-uri&gt;
          &lt;taglib-location&gt;/WEB-INF/struts-tiles.tld&lt;/taglib-location&gt;
      &lt;/taglib&gt;
      &lt;taglib&gt;
          &lt;taglib-uri&gt;http://struts.apache.org/tags-nested&lt;/taglib-uri&gt;
          &lt;taglib-location&gt;/WEB-INF/struts-nested.tld&lt;/taglib-location&gt;
      &lt;/taglib&gt;
  &lt;/jsp-config&gt;
  </code></pre>
  
  <p></p>