> So I placed this code in my xml module > > [code]<servlets> > <servlet> > <name>jcaptcha</name> > > <class>com.octo.captcha.module.servlet.image.SimpleImageCaptchaServlet</class> > <mappings> > <mapping>/jcaptcha.jpg</mapping> > </mappings> > </servlet> > </servlets> > [/code]
Doing so tells Magnolia to run the servlet for you. You can verify that the servlet is installed when you install module in config:/server/filters/servlets/jcaptcha. > And then I created the bypass node > (config.server.filters.bypasses.jcaptcha.xml) for the filter Doing so you tell Magnolia to NOT treat said bypass url, but instead let Servlet container handler that request. Since only Magnolia knows about the servlet, but not the container you get 404. Once you make container aware of the servlet (by adding it to web.xml) you get the result. You have 2 options - either you keep bypass and definition in web.xml or you keep the servlet definition in your module. You can't have both. Also please remember that Magnolia will read servlet definition from your module descriptor during installation of the module, so if that module was already installed, you need to invoke info.magnolia.module.delta.RegisterModuleServletsTask as part of your update. HTH, Jan ---------------------------------------------------------------- For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html Alternatively, use our forums: http://forum.magnolia-cms.com/ To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
