Hello all, I hope someone can help me with this I'm having big trouble with Magnolia Servlet, so far I've tried everything I can think of.
Regarding to [url=null][url=http://documentation.magnolia-cms.com/reference/module-mechanism.html#Servlets]the magnolia documentation[/url][/url] we can set servlet definition in module definition instead of web.xml (which sounds more neat idea especially for expanding) 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] And then I created the bypass node (config.server.filters.bypasses.jcaptcha.xml) for the filter [code] <?xml version="1.0" encoding="UTF-8"?> <sv:node sv:name="jcaptcha" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:contentNode</sv:value> </sv:property> <sv:property sv:name="jcr:uuid" sv:type="String"> <sv:value>f845ae89-a537-4e9f-b074-57d812fd92a6</sv:value> </sv:property> <sv:property sv:name="class" sv:type="String"> <sv:value>info.magnolia.voting.voters.URIStartsWithVoter</sv:value> </sv:property> <sv:property sv:name="pattern" sv:type="String"> <sv:value>/jcaptcha.jpg</sv:value> </sv:property> <sv:node sv:name="MetaData"> <sv:property sv:name="jcr:primaryType" sv:type="Name"> <sv:value>mgnl:metaData</sv:value> </sv:property> <sv:property sv:name="mgnl:activated" sv:type="Boolean"> <sv:value>false</sv:value> </sv:property> <sv:property sv:name="mgnl:activatorid" sv:type="String"> <sv:value>superuser</sv:value> </sv:property> <sv:property sv:name="mgnl:authorid" sv:type="String"> <sv:value>superuser</sv:value> </sv:property> <sv:property sv:name="mgnl:creationdate" sv:type="Date"> <sv:value>2007-04-25T18:23:31.784+02:00</sv:value> </sv:property> <sv:property sv:name="mgnl:lastaction" sv:type="Date"> <sv:value>2007-05-02T17:00:15.025+02:00</sv:value> </sv:property> <sv:property sv:name="mgnl:lastmodified" sv:type="Date"> <sv:value>2012-06-07T05:41:25.275-05:00</sv:value> </sv:property> </sv:node> </sv:node> [/code] Still when I request localhost/magnolia/jcaptcha.jpg it gives me 404 error. "But" When I put the servlet definition in web.xml , it gives the right result. Can anyone tell me what am I missing? -- Context is everything: http://forum.magnolia-cms.com/forum/thread.html?threadId=ea59ba61-5c53-4b6f-b50b-749c4aaf684a ---------------------------------------------------------------- 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]> ----------------------------------------------------------------
