It would probably be more helpful to post this question to the Acegi Support Forum:
http://forum.springframework.org/viewforum.php?f=11 This way other people that have the same problem will find the answer. Regardless, what application server or web container are you running? I dont personally use WebWork, however I'd like to rule out any container issue. The redirects in the AuthenticationProcessingFilter are plain old sendRedirects on the http response. Again, I would post this to the Acegi forum (see link above) and post some more info (servlet container, version, plus any relevant logging).. also it might help to attach the Acegi sourcecode for your version... and debug / step into the AbstractProcessingFilter to see how the "response.sendRedirect" are behaving. Cheers, Mark On 8/3/05, Jared Odulio <[EMAIL PROTECTED]> wrote: > Hi, > > I am having a problem with redirections when using > j_acegi_security_check. I have followed the Contact sample's > applicationContext-acegi-security.xml AuthenticationProcessingFilter > configuration and this is how it looks like: > > <bean id="authenticationProcessingFilter" > class="net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilter"> > <property name="authenticationManager"><ref > bean="authenticationManager"/></property> > <property > name="authenticationFailureUrl"><value>/errorLogin.action</value></property> > <property > name="defaultTargetUrl"><value>/readUser.action</value></property> > <property > name="filterProcessesUrl"><value>/j_acegi_security_check</value></property> > <property name="rememberMeServices"><ref > local="rememberMeServices"/></property> > </bean> > > <bean id="authenticationProcessingFilterEntryPoint" > class="net.sf.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint"> > <property > name="loginFormUrl"><value>/login.vm</value></property> > <property name="forceHttps"><value>false</value></property> > </bean> > > I was able to make the Contacts sample run. But when I followed this > sample with my login.vm page, the redirection is behaving > inconsistently. Most of the time, it will not redirect to the > "defaultTargetUrl" if properly authenticated and will not redirect to > the "authenticationFailureUrl" if not authenticated, only a few times it > does right thing and behaves wrongly like executing the > errorLogin.action even if the authentication is correct. Any ideas? > > Regards, > > Jared > > -- > http://jaredtech.blogspot.com > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Home: http://acegisecurity.sourceforge.net > Acegisecurity-developer mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Home: http://acegisecurity.sourceforge.net Acegisecurity-developer mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
