8 Replies Latest reply on Aug 23, 2010 3:14 AM by kien_nguyen

    gadgets & mod_jk - mod_proxy

    corep105

      if i use mod_jk on my apache2 frontend gadgets stop working - if i use mod_proxy gadgets are fine. Have i missed some configuration thingy? (i have a jkmount * and a couple of jkunmount for html directories)

       

      Regards

      /Kåre

        • 1. Re: gadgets & mod_jk - mod_proxy
          kien_nguyen

          You should use JkMount /* or JkMount /portal/*

          if not working, please show me your detail configurations

          • 2. Re: gadgets & mod_jk - mod_proxy
            corep105

            my jkmounts are as follows:

             

            JkUnMount  "/503.html"  WRK_PORTALTEST

            JkUnMount  "/html/*"  WRK_PORTALTEST

            JkMount  "/*"  WRK_PORTALTEST

             

            and worker.properties:

             

            # WRK_PORTALTEST

            worker.WRK_PORTALTEST.type=ajp13

            worker.WRK_PORTALTEST.host=localhost

            worker.WRK_PORTALTEST.port=8009

            worker.WRK_PORTALTEST.socket_timeout=10

            worker.WRK_PORTALTEST.lbfactor=10

            worker.WRK_PORTALTEST.socket_keepalive=true

             

            everything with the portal works except gadgets.

            • 3. Re: gadgets & mod_jk - mod_proxy
              corep105

              hmmm - looks like i have to look into this a bit more. If i use proxypass with hostname instead of 127.0.0.1 or localhost i have the same problem.

               

              Regards

              Kåre

              • 4. Re: gadgets & mod_jk - mod_proxy
                kien_nguyen

                Hi,

                 

                Look as if you are missing declaration of workers list, such as worker.list=WRK_PORTALTEST

                ...

                 

                everything with the portal works except gadgets.

                 

                If you don't have workers list declaration, Apache2 starting process will has error. I wonder when you said the portal works?

                 

                The correct worker.properties as yours:

                # WRK_PORTALTEST

                worker.list=WRK_PORTALTEST

                worker.WRK_PORTALTEST.type=ajp13

                worker.WRK_PORTALTEST.host=localhost

                worker.WRK_PORTALTEST.port=8009

                worker.WRK_PORTALTEST.socket_timeout=10

                worker.WRK_PORTALTEST.lbfactor=10

                worker.WRK_PORTALTEST.socket_keepalive=true

                 

                They worked in my testing.

                • 5. Re: gadgets & mod_jk - mod_proxy
                  corep105

                  i have looked into it a bit more and only using mod_proxy the problem manifests itself like this:

                   

                  apache2 as frontend

                  mod_proxy enabled

                  VirtualHost *:80

                  Servername PORTALTEST

                   

                  in the virtualhost section i have:

                   

                  ProxyRequests Off
                      <Proxy *>
                          Order deny,allow
                          Allow from all
                      </Proxy>

                   

                      ProxyPass / http://PORTALTEST:8080/
                      ProxyPassReverse /  http://PORTALTEST:8080/

                   

                  and it is not working with gadgets. Everything else on the portal is working. If i change the hostname to either localhost or 127.0.0.1 then gadgets are working.

                   

                  ProxyPass / http://127.0.0.1:8080/
                       ProxyPassReverse /  http://127.0.0.1:8080/

                   

                  am i the only one with this problem?

                   

                  Regards

                  Kåre Pedersen

                  • 6. Re: gadgets & mod_jk - mod_proxy
                    corep105

                    looks like we have something in our skin/theme that triggers the error - it works with a plain stock gatein.

                     

                    Sorry - a dev issue in our environment apparently.

                     

                    Thanks for the help anyways :-)

                     

                    Regards

                    Kåre

                    • 7. Re: gadgets & mod_jk - mod_proxy
                      corep105

                      looks like the problem was an update to vmware-tools on our test server. It works every where else - so conclusion seems to be with vmware-tools. Can't explain why or what the problem is, but if i move gatein to another machine the same setup works.

                       

                      Thanks for help etc. :-)

                       

                      /Kåre

                      • 8. Re: gadgets & mod_jk - mod_proxy
                        kien_nguyen

                        Congrats to you

                         

                        Regards,

                        Kien