Results 1 to 6 of 6

Thread: ERROR: View /login.xhtml could not be restored

  1. #1
    Join Date
    Oct 2008
    Posts
    10

    Cool ERROR: View /login.xhtml could not be restored

    I'm using Spring-3.0.0RELEASE, spring-security-3.0.1.RELEASE, SWF-2.0.8RELEASE, JSF1.2.

    I have <h:commandLink action="securedAction" .../>.
    In flow definition XML action is secured as transition:
    HTML Code:
    <transition on="securedAction">
                <secured attributes="ROLE_USER"/>
    ....
    </transition>
    So when user clicks on link - login page is shown (login.xhtml).
    User enters credentials for account which HAS NOT ROLE_USER.
    User is taken back to source page with this 'secured action link'.
    User clicks on link again and got:

    javax.servlet.ServletException: viewId:/login.xhtml - View /login.xhtml could not be restored.
    javax.faces.webapp.FacesServlet.service(FacesServl et.java:270)
    org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(Base XMLFilter.java:178)
    org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseF ilter.java:290)
    org.ajax4jsf.webapp.BaseFilter.processUploadsAndHa ndleRequest(BaseFilter.java:388)
    ...

    Which is actually caused by spring's AccessDeniedException


    Questions are:
    1) Why I c this JSF error instead of login page?
    2) How do I handle such case to inform user: "you dont have enough credentials" ?

  2. #2
    Join Date
    Oct 2008
    Posts
    10

    Default

    Heeeeeeeeeeeeeeeelp!

  3. #3
    Join Date
    Oct 2008
    Posts
    10

    Default

    Spring GURUs!
    Are there any???

  4. #4
    Join Date
    Oct 2008
    Posts
    10

    Default

    Is there anyone who can explain?

  5. #5
    Join Date
    Nov 2008
    Posts
    742

    Default

    You may want to ask on the Spring Security forums.

  6. #6
    Join Date
    Oct 2008
    Posts
    10

    Default

    Thats truth.

    Will post it there too... but I'm still thinking about its Spring WebFlow job to dispatch such cases.

    Thanx for your attention

Tags for this Thread

Posting Permissions

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