Search code examples
apacheprimefacesglassfish-3

Configuring Apache on top of GF3 - Not working


I'm trying to configure Apache on top of Glassfish v3 using apj13. But when I'm trying to access http://<server_name>/myApp but this is not working. It is keep on loading the page.

From Glassfish side I've not made any changes.

From Apache side I've edited the httpd.conf file to include virtual server using JkMount /myApp/* worker1

There was no helpful logs in either from Glassfish or Apache.

Update: Worker.properties file

worker.worker1.port=28081 worker.worker1.host=myservername worker.worker1.type=ajp13

The application is using Primefaces if that helps.

Any help is much appreciated.! Thanks.


Solution

  • I found the solution for this. I was having wrong configuration (incorrect port) in my worker.properties file. Below is the correct one (for me)

    worker.worker1.port=8009 //the port was wrong. Instead of having APJ port I had HTTP port
    worker.worker1.host=myservername 
    worker.worker1.type=ajp13
    

    Also I had included socket_connect_timeout to the properties file to check for any errors while communicating with JK and remote host.

    Please note that I also had cluster enabled in my GF and I had to manually configured different APJ_LISTENER_PORT value in custer configuration page in Admin Console of GF.

    Hope this might help someone.!