1 2 Previous Next 21 Replies Latest reply on Jul 30, 2011 4:59 AM by u j Go to original post
      • 15. Re: JSF redirects to ajp://
        David Beaumont Newbie

        Hi Ulrich,


        Would having a second ProxyPass in Apache make sense? Something like:


        ProxyPass / ajp://localhost:8009/

        ProxyPass /console http://localhost:9990



        • 16. Re: JSF redirects to ajp://
          u j Novice

          Good idea. Adding this in theory should do:


          ProxyPass /console

          ProxyPassReverse /console


          But it doesn't. When I put [server_ip]/console, I get an answer


          can't establish a connection to the server at [server_ip]:9990


          This is strange, it does not seem to apply the proxy pass reverse to the redirect. I shouldn't see a request to port 9990, but to 80! 9990 should be invisible from outside.




          • 17. Re: JSF redirects to ajp://
            David Beaumont Newbie

            Have you got firebug or another tool that can trace requests?


            It sounds to me like the console is doing a redirect which isn't transposed (I think that's the same as what you said about not applying the ProxyPassReverse). I think that may happen if the server responds with an HTML meta redirect as opposed to an HTTP header redirect. If thats the case you may find you can manually enter the full url so the server doesn't need to redirect - http://[server ip]/console/some/extra/path/segments


            I know that in firebug particularly there is a button somewhere in the top left of the interface that will make requests sticky (i.e. not clear them on redirects). This means you could examine the responses from the server easily.


            Sorry if this not the problem at all - I haven't tried doing what you are yet, though would be interested in a similar set up in the future.



            • 18. Re: JSF redirects to ajp://
              u j Novice

              Yes, I have firebug and deactivated the option "Activate Same Origin URLs".

              So the response of the initial request has a header with


              Location: http://[server_ip]:9990/console/index.html


              Although according to http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypassreverse, this header should be rewritten due to the proxy pass reverse statement!


              And if I enter http://[server_ip]/console/App.html, as you suggested, some GWT stuff is loaded, but it finally aborts, because it tries to load from [server_ip]:9990/management. This isn't rewritten to port 80 neither.


              This is exasperating ... Have you tried to bind to your remote IP? When I try that, I get an error that it cannot bind to it. When I bind to any-addess, I get redirected to which obviously fails, too.




              • 19. Re: JSF redirects to ajp://
                jaikiran pai Master

                Can you please give this a try against latest AS7 nightly build? I remember something related to this, in the console, was recently fixed. Although I'm not sure if this is the same issue.

                • 20. Re: JSF redirects to ajp://
                  u j Novice

                  Hi Jaikiran,


                  I tried the latest build. Some progress: .../console is correctly redirected and App.html loads two GWT javascripts, but no /management is attempted to be loaded according to firebug. The page stays blank. The source is


                  <!DOCTYPE html>




                      <title>JBoss Management</title>

                      <!-- proper charset -->

                      <meta http-equiv="content-type" content="text/html;charset=utf-8" />


                      <!-- default locale -->

                      <!--meta name="gwt:property" content="locale=de"-->


                      <script type="text/javascript" language="javascript" src="app/app.nocache.js"></script>





                  <!-- history iframe required on IE -->

                  <iframe src="javascript:''" id="__gwt_historyFrame" style="width:0px;height:0px;border:0px"></iframe>


                  <!-- pre load images-->

                  <div style="visibility:hidden"><img src="images/loading_lite.gif"/></div>

                  </body >




                  My Apache configuration is currently:


                  NameVirtualHost *:82

                  <VirtualHost *:82>

                  ProxyPass /console

                  ProxyPassReverse /console

                  #ProxyPass /management

                  #ProxyPassReverse /management



                  Including the proxy pass for management makes no difference.


                  So, as a bottom line, the current problem is that the loading of :9990/management is lost.




                  • 21. Re: JSF redirects to ajp://
                    u j Novice

                    As the issue is different from the original one, and to give it more visibility, I created a new thread:




                    I hope this can be fixed soon, since it blocks the change to AS 7.



                    1 2 Previous Next