I applied the folloeing proceedure but now i am not able to login . My first
page is  not coming .Its showing following error in log file.

------------
[1/11/08 11:00:20:250 IST] 543f7ab0 WebGroup      I SRVE0181I: [Appfuse]
[/AuditTool] [Servlet.LOG]: JspFactoryImpl: Exception initializing page
context: java.lang.IllegalArgumentException: setContext(...) 
never called, ApplicationContext must not be null


-------
I did the following setting in security.xml.
 <bean id="filterInvocationInterceptor"
class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="accessDecisionManager" ref="accessDecisionManager"/>
         <property name="objectDefinitionSource">
            <value>
                PATTERN_TYPE_APACHE_ANT
                  /loginFailure.html*=ROLE_ANONYMOUS
               
/signup.html=ROLE_ANONYMOUS,complianceExec,PAO,AO,SUPERADMIN,REVIEWER,AUDITOR,Admin,ReportUser
               
/passwordHint.html*=ROLE_ANONYMOUS,complianceExec,PAO,AO,SUPERADMIN,REVIEWER,AUDITOR,Admin,ReportUser
               
/**/*.html*=complianceExec,PAO,AO,SUPERADMIN,REVIEWER,AUDITOR,Admin,ReportUser
                /clickstreams.jsp=complianceExec,SUPERADMIN,Admin
            </value>
        </property>
    </bean>

<bean id="authenticationProcessingFilter"
class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
        <property name="authenticationManager" ref="authenticationManager"/>
        <property name="authenticationFailureUrl"
value="/loginFailure.html"/>
        <property name="authenticationFailureUrl"
value="/loginTest.jsp?error=true"/>
        <property name="defaultTargetUrl" value="/"/>
        <property name="filterProcessesUrl" value="/j_security_check"/>
        <property name="rememberMeServices" ref="rememberMeServices"/>
    </bean>

is there any setting  still remaining please tell me. 



Mike Horwitz wrote:
> 
> Look for the bean called "filterInvocationInterceptor" in the file
> sercurity.xml. You should have a line in the property called
> "objectDefintionSource" that looks like:
> 
>      /myaction.html*=ROLE_ANONYMOUS
> 
> Note that this line should appear before the line
> /**/*.html*=ROLE_ADMIN,ROLE_USER
> 
> Mike.
> 
> 
> On 7/2/07, ujjala <[EMAIL PROTECTED]> wrote:
>>
>>
>> How can i mark /myaction.html as having anonymous access in mu
>> security.xml.
>> please give me the proper syntax.
>>
>> Michael Horwitz wrote:
>> >
>> > You may need to mark /myaction.html as having anonymous access in your
>> > security.xml configuration.
>> >
>> > Mike.
>> >
>> > On 6/28/07, ujjala <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I tried it but
>> >> It does not work.
>> >> It seems that without authentication we can not go into any action of
>> >> strutsconfig.
>> >>
>> >>
>> >> mraible wrote:
>> >> >
>> >> > You should probably go to /myaction.html - that should work.
>> >> >
>> >> > Matt
>> >> >
>> >> > On 6/28/07, ujjala <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> I want to write a action class where flow should go if login
>> >> >> authentication
>> >> >> failure.
>> >> >> For this i did mapping in strutsconfig.
>> >> >> Then i put value="/myaction" for "authenticationFailureUrl" in
>> >> >> applicationcontextsecurity.xml.
>> >> >>
>> >> >> <bean id="authenticationProcessingFilter"
>> >> >> class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
>> >> >>         <property name="authenticationManager"
>> >> >> ref="authenticationManager"/>
>> >> >>         <property name="authenticationFailureUrl"
>> value="/myaction"/>
>> >> >>         <property name="defaultTargetUrl" value="/"/>
>> >> >>         <property name="filterProcessesUrl"
>> >> value="/j_security_check"/>
>> >> >>         <property name="rememberMeServices"
>> ref="rememberMeServices"/>
>> >> >>     </bean>
>> >> >>
>> >> >> In my action i forward it to /login.jsp?error=true.
>> >> >> In myaction i want to access database also to update some value on
>> the
>> >> >> basis
>> >> >> login username.
>> >> >> But problem is that if authentication fails(password does not
>> match)
>> >> it
>> >> >> does
>> >> >> not access strutsconfig action(/myaction).
>> >> >> So as a result i want to go in /myaction after authentication
>> failure
>> >> and
>> >> >> also i want to access dao to access
>> >> >> database.
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> >>
>> http://www.nabble.com/To-go-in-a-action-after-authenticationfailure-tf3993510s2369.html#a11340285
>> >> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > --
>> >> > http://raibledesigns.com
>> >> >
>> >> >
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/To-go-in-a-action-after-authenticationfailure-tf3993510s2369.html#a11341383
>> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/To-go-in-a-action-after-authenticationfailure-tf3993510s2369.html#a11388746
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/To-go-in-a-action-after-authenticationfailure-tp11340285s2369p14750225.html
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to