Rewrite and JSF error page

Splash Forums Rewrite Users Rewrite and JSF error page

This topic contains 1 reply, has 2 voices, and was last updated by  Christian Kaltepoth 8 months, 3 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27289

    helija
    Participant

    Hi,
    Just stared with Rewrite, it’s working nice, just have some questions about default JSF error page. It is configured in web.xml:

    <error-page>
    <location>/srv/test/errorRedirect.xhtml</location>
    </error-page>

    Since I start using rewrite I do not get any redirection to error page when error happens. Just empty blank page is displayed.
    Rewrite is configured as:

    return ConfigurationBuilder.begin()

    // Login page redirect
    .addRule(Join.path(“/login”).to(“/srv/test/login.xhtml”))
    .perform(Log.message(Level.INFO, “Login page redirect”))

    //
    .addRule(Join.path(“/app/test”).to(“/srv/test/v1/tmpl.xhtml”))
    .perform(Log.message(Level.INFO, “App home page”))

    // default
    .addRule().perform(Log.message(Level.INFO, “rewrite involved…”));

    Any help on this, what an I missing in Rewrite implementation/configuration?

    Thanks in advance
    Helija

    #27290

    Hmmm. That’s weird. Actually I see no reason why adding Rewrite could break your error page. Unfortunately these bugs are very difficult to debug. Does the error page work if you use some simple HTML or JSP page instead?

    You could also try to search the forums. If I remember correctly there were some other issues with error pages. Perhaps there is some related issue and/or workaround for it.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Comments are closed.