users@glassfish.java.net

Re: Official guide to fronting glassfish V3 with apache2

From: <glassfish_at_javadesktop.org>
Date: Sun, 21 Mar 2010 07:05:58 PDT

Thankyou Jan, that guild ( http://docs.sun.com/app/docs/doc/820-7692/gixqw?l=en&a=view )
worked great.

It turns out my version of glassfish was not current, that is why i was getting all those odd errors... Once i upgraded

[b]created a workers.properties file:[/b]
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
[b]
edited httpd.conf:[/b]
JkWorkersFile workers.properties
# Where to put jk logs
JkLogFile /var/log/apache2/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel debug
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"

then ran:
./asadmin create-http-listener --listenerport 8009 --listeneraddress 0.0.0.0 --defaultvs server my-connector
./asadmin set configs.config.server-config.network-config.network-listeners.network-listener.my-connector.jk-enabled=true

lastly i put my JK mount file under my apache2 VirtualHost file:
JkMount /foobarServlet/* worker1
[Message sent by forum member 'huggy77']

http://forums.java.net/jive/thread.jspa?messageID=392998