users@glassfish.java.net

GalssFish and mod_jk

From: <glassfish_at_javadesktop.org>
Date: Thu, 10 Sep 2009 14:19:10 PDT

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