Announcement Announcement Module
Collapse
No announcement yet.
j_spring_security_logout not found Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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>
    Attachment
    Attached Files

  • #2
    Because you changed the logout-url so it is no longer the default...

    Comment


    • #3
      yes,Thanks for your kindness

      Comment

      Working...
      X