On Fri, Jun 13, 2008 at 7:38 AM, Nathan Anderson <[EMAIL PROTECTED]> wrote:
> Hello Ernas,
>
> Prior to the 2.0 release Spring Security was called Acegi Security Framework.
> Obviously, the instructions were written for an older version, but it is
> likely that most if not all of the tutorial still applies.
>
> I did a quick Google and I found that the person who wrote the original
> CAPTCHA integration for Spring Security is no longer maintaining it, so it is
> in a "should work" state.
>
> http://forum.springframework.org/showthread.php?t=53154
>
> Hope that helps,
> Nathan
Hi,
Thank you for your reply.
I already looked at that discussion; and I actually I managed to make
some part of Captcha working
with appfuse, but only integration with spring security part that
really confuse me.
I don't really understand how to write bean definition in
security.xml. When I put configuration like below
giving exception:
ERROR [main] ContextLoader.initWebApplicationContext(215) | Context
initialization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
Line 36 in XML document from ServletContext resource
[/WEB-INF/security.xml] is invalid; nested exception is
org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching
wildcard is strict, but no declaration can be found for element
'bean'.
<bean id="captchaEntryPoint"
class="org.acegisecurity.captcha.CaptchaEntryPoint">
<property name="captchaFormUrl">
<value>/captcha.html</value>
</property>
<property name="includeOriginalRequest">
<value>true</value>
</property>
<property name="includeOriginalParameters">
<value>true</value>
</property>
</bean>
Thanks,
--
Ernas M. Jamil
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]