glassfish with apache working on UBUNTU success
So got my v2 of glassfish running behind apache on ubuntu
- start your glassfish server
- enable ajp, $GLASSFISH_HOME/bin/asadmin create-jvm-options -Dcom.sun.enterprise.web.connector.enableJK=8009
- copy 2 jars from apache-tomcat version 5.5.27 to your glassfish directory, commons-modeler-2.0.1.jar and tomcat-ajp.jar
- copy commons-logging-1.0.4.jar your glassfish/lib directory
- restart your glassfish server
- enable the mod_proxy and mod_proxy_ajp modules in your apache instance. mod_proxy_ajp depends upon mod_proxy, I did this by creating a symlink from the "mods-enabled" directory to the "mods-available" directory
- cd /etc/apache2/mods-enabled
- ln -s ../mods-available/mod_proxy.load mod_proxy.load
- ln -s ../mods-avaiable/mod_proxy_ajp.load mod_proxy_ajp.load
- ln -s ../mods-available/mod_proxy_ajp.conf mod_proxy_ajp.conf
- Edit your mod_proxy_ajp.conf file to appropriately, this happens to be mine:
<Location /hudson>
ProxyPass ajp://localhost:8009/hudson
</Location>

Comments
Post new comment