title: Magnolia doesnt see custom servlet
body: <p>I'm having big trouble with Magnolia Servlet, so far I've tried everything I can think of.</p>
  
  <p>Regarding to the <a href="http://documentation.magnolia-cms.com/reference/module-mechanism.html#Servlets" rel="nofollow">magnolia documentation</a>  we can set servlet definition in module definition instead of web.xml (which sounds more neat idea especially for expanding) </p>
  
  <p>So I placed this code in my xml module </p>
  
  <pre><code> &lt;servlets&gt;
      &lt;servlet&gt;
          &lt;name&gt;jcaptcha&lt;/name&gt;
          &lt;class&gt;com.octo.captcha.module.servlet.image.SimpleImageCaptchaServlet&lt;/class&gt;
          &lt;mappings&gt;
          &lt;mapping&gt;/jcaptcha.jpg&lt;/mapping&gt;
          &lt;/mappings&gt;
      &lt;/servlet&gt;
   &lt;/servlets&gt;
  </code></pre>
  
  <p>And then I created the bypass node (config.server.filters.bypasses.jcaptcha.xml)  for the filter  </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;sv:node sv:name="jcaptcha" xmlns:sv="http://www.jcp.org/jcr/sv/1.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
      &lt;sv:property sv:name="jcr:primaryType" sv:type="Name"&gt;
          &lt;sv:value&gt;mgnl:contentNode&lt;/sv:value&gt;
      &lt;/sv:property&gt;
      &lt;sv:property sv:name="jcr:uuid" sv:type="String"&gt;
          &lt;sv:value&gt;f845ae89-a537-4e9f-b074-57d812fd92a6&lt;/sv:value&gt;
      &lt;/sv:property&gt;
      &lt;sv:property sv:name="class" sv:type="String"&gt;
          &lt;sv:value&gt;info.magnolia.voting.voters.URIStartsWithVoter&lt;/sv:value&gt;
      &lt;/sv:property&gt;
      &lt;sv:property sv:name="pattern" sv:type="String"&gt;
          &lt;sv:value&gt;/jcaptcha.jpg&lt;/sv:value&gt;
      &lt;/sv:property&gt;
      &lt;sv:node sv:name="MetaData"&gt;
          &lt;sv:property sv:name="jcr:primaryType" sv:type="Name"&gt;
              &lt;sv:value&gt;mgnl:metaData&lt;/sv:value&gt;
          &lt;/sv:property&gt;
          &lt;sv:property sv:name="mgnl:activated" sv:type="Boolean"&gt;
              &lt;sv:value&gt;false&lt;/sv:value&gt;
          &lt;/sv:property&gt;
          &lt;sv:property sv:name="mgnl:activatorid" sv:type="String"&gt;
              &lt;sv:value&gt;superuser&lt;/sv:value&gt;
          &lt;/sv:property&gt;
          &lt;sv:property sv:name="mgnl:authorid" sv:type="String"&gt;
              &lt;sv:value&gt;superuser&lt;/sv:value&gt;
          &lt;/sv:property&gt;
          &lt;sv:property sv:name="mgnl:creationdate" sv:type="Date"&gt;
              &lt;sv:value&gt;2007-04-25T18:23:31.784+02:00&lt;/sv:value&gt;
          &lt;/sv:property&gt;
          &lt;sv:property sv:name="mgnl:lastaction" sv:type="Date"&gt;
              &lt;sv:value&gt;2007-05-02T17:00:15.025+02:00&lt;/sv:value&gt;
          &lt;/sv:property&gt;
          &lt;sv:property sv:name="mgnl:lastmodified" sv:type="Date"&gt;
              &lt;sv:value&gt;2012-06-07T05:41:25.275-05:00&lt;/sv:value&gt;
          &lt;/sv:property&gt;
      &lt;/sv:node&gt;
  &lt;/sv:node&gt;
  </code></pre>
  
  <p>Still when I request  localhost/magnolia/jcaptcha.jpg it gives me 404 error. 
  <strong>"But"</strong> When I put the servlet definition in web.xml , it gives the right result.</p>
  
  <p>Can anyone tell me what am I missing? </p>