Results 1 to 3 of 3

Thread: j_spring_security_logout not found

  1. #1
    Join Date
    Dec 2012
    Posts
    4

    Default j_spring_security_logout not found

    hi,Why I encountered error 404 when clicking the logout link?
    i'm using jsf2.1 and spring security 3.1.1
    spring_security.xml:
    Code:
    <security:global-method-security pre-post-annotations="enabled"/>
        <security:http auto-config="true" use-expressions="true">
            <security:intercept-url pattern="/radio/base.xhtml" access="ROLE_ADMIN" />
            <security:intercept-url pattern="/radio/**" access="ROLE_SUPERADMIN" />
            <security:intercept-url pattern="/main/layout.xhtml" access="hasAnyRole('ROLE_USER','ROLE_ADMIN')" />
            <security:form-login login-page="/main/login.xhtml"
                        default-target-url="/main/layout.xhtml"
                        authentication-failure-url="/main/blank.xhtml"
                        
                        />
            <security:logout invalidate-session="true" logout-success-url="/main/login.xhtml" logout-url="/main/blank.xhtml"/>
    mypage.xhtml

    Code:
    <h:outputLink value="#{request.contextPath}/j_spring_security_logout">logout</h:outputLink>
    as.jpg

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    Because you changed the logout-url so it is no longer the default...
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Dec 2012
    Posts
    4

    Default

    yes,Thanks for your kindness

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •