PrettyUrl lead to blank pages (glassfish, Apache+mod_jk)

Splash Forums PrettyFaces Users PrettyUrl lead to blank pages (glassfish, Apache+mod_jk)

This topic contains 4 replies, has 3 voices, and was last updated by  Christian Kaltepoth 9 years, 7 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #18463



    I have installed my webapp on glassfish with prettyfaces (3.3.2) to have pretty url. if I acces the site on the glassfish port It works fine.

    Next I have installed Apache and mod_jk as FrontEnd. In this configuration prettyUrl doesn’t work anymore and leads to a blank page. (really blank 0ko received)

    If I enter the full url on port 80 it works fine :

    http://<ip>/<appli>/login –> doesn’t work

    http://<ip>/<appli>/pages/login.xhtml –> works.

    The differents logs file say nothing.

    Here some extract of files:


    <!–Pretty faces filter –>


    <filter-name>Pretty Filter</filter-name>





    <filter-name>Pretty Filter</filter-name>







    <!– Welcome file list configuration –>




    <!– Error handling –>














    <pretty-config xmlns=”″



    <!– Public pages –>

    <url-mapping id=”login”>

    <pattern value=”/login”/>

    <view-id value=”/pages/login.xhtml” />


    <url-mapping id=”login-error”>

    <pattern value=”/login/#{error}”/>

    <view-id value=”/pages/login.xhtml” />


    <url-mapping id=”lost-login”>

    <pattern value=”/lostlogin”/>

    <view-id value=”/pages/lost-login.xhtml”/>


    <url-mapping id=”new-user”>

    <pattern value=”/newuser”/>

    <view-id value=”/pages/nouvel-utilisateur.xhtml”/>

    <action onPostback=”false”>#{newUserBean.cleanParameters}</action>




    –mod_jk conf file–

    # Where to find

    JkWorkersFile /etc/apache2/jk/

    # Where to put jk logs

    JkLogFile /var/log/apache2/mod_jk.log

    # Set the jk log level [debug/error/info]

    JkLogLevel info

    # Select the log format

    JkLogStampFormat “[%a %b %d %H:%M:%S %Y] “

    # JkOptions indicate to send SSL KEY SIZE,

    JkOptions +ForwardKeySize -ForwardDirectories +ForwardURICompatUnparsed

    # JkRequestLogFormat set the request format

    JkRequestLogFormat “%w %V %T”

    # Locattion of shm file

    JkShmFile /etc/apache2/jk/jk.shm

    Ask if you need something else.

    Thanks if you can help me!


    Is it only the pretty-URLs that are broken when using Mod_JK, or are other pages blank as well? It doesn’t make sense to me that only certain pages would stop working.


    Could you perhaps post your Perhaps there is something wrong there?



    Here is my

    #Worker 1









    And yes only the pretty urls are broken.

    Note: if there is an error on a page I see the glassfish error page well (ex: failed to connect the database). But if all is ok the server is long to respond and send an empty page.


    Your file looks fine. This is really a very weird issue, because which type of connector (HTTP vs. AJP) you use shouldn’t make any difference. The Servlet API doesn’t even provide any way to distinguish between the two.

    You wrote that the request takes a long time and finally you only see a blank page. You should try to do a thread dump to find out what is taking so long. And what HTTP response code is sent by the server when the blank page is showed?

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

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.