users@glassfish.java.net

Re: GalssFish and mod_jk

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Fri, 11 Sep 2009 06:08:51 -0700

It does not look like you created the system property AJP_PORT. A
detailed mod_jk setup instructions on Mac are available at:

http://blog.arungupta.me/2009/01/totd-67-how-to-front-end-a-glassfish-cluster-with-apache-mod_jk-on-mac-osx-leopard/

See if they are helpful.

-Arun

glassfish_at_javadesktop.org wrote:
> Hello,
>
> I have a Suse 11.1 Server with Java 1.6.0_15. I also have Apache 2.2.10 on this server and I would like to combine these via mod_jk. This worked well on Suse 11.0 but after an update it does not work any more. I made the following config for Apache:
>
> workers.properties:
> worker.list=ajp13
> worker.ajp13.port=9008
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
>
> httpd.conf:
> LoadModule jk_module /usr/lib64/apache2/mod_jk.so
> <IfModule mod_jk.c>
> JkWorkersFile /etc/apache2/workers.properties
> JkLogFile /var/log/apache2/mod_jk.log
> JkLogLevel info
> # Send all jsp requests to GlassFish
> JkMount /*.jsp ajp13
> # Send all glassfish-test requests to GlassFish
> JkMount /TWiBu/* ajp13
> JkMount /Kniffel/* ajp13
> JkMount /Chips/* ajp13
> JkMount /*/faces/ ajp13
> JkShmFile /var/log/apache2/jk-runtime-status
> </IfModule>
>
> Logfiles show that the module is loaded. The Applications run when I call them via Port 8080. But when I call then via Apache I get only the error that the Page is not found. The Apache-Error shows the same. Error 404.
>
> The necessary jars (commons-logging, commons-modeler and tomcat-ajp) are copied in the lib-directory of glassfish and the following Property is set:
>
> -Dcom.sun.enterprise.web.connector.enableJK=9008
>
> Did I missed anything?
>
> Thanks in advance,
> Thomas
> [Message sent by forum member 'willi2793' (willi_at_thomas-wilhelmi.de)]
>
> http://forums.java.net/jive/thread.jspa?messageID=363637
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

-- 
Need Application Server ? Download from http://glassfish.org
Blog: http://blogs.sun.com/arungupta