Install & Configure LB on Apache (Steps using Glassfish v2ur1 & Apache 2.0.59 on Windows)
In Glassfish 9.1.1, LB installation was done using the AS installer.
The installer would edit the Apache config files as well. But,
Glassfish v2 ur1 does not have LB bundled with it. The users will have
to download the LB and manually configure it. Hence this blog, which
gives you detailed steps to install LB and configure it with Apache. If
you are using the Sun WebServer, the steps are available here
Make sure the localhost:80 &
localhost:443 are accessible in a browser
check the <apache-install>/logs/errors to make sure
there are no errors. {File does not exist:
<apache-install>/htdocs/favicon.ico Is a harmless error if it
appears in the log .}
Install Glassfish v2ur1.
Download bits from
http://www.java.net/download/javaee5/v2ur1/promoted/Windows/glassfish-installer-v2ur1-b09d-windows.jar
java -Xmx256m -jar
glassfish-installer-v2ur1-b09d-windows.jar - to unbundle glassfish.
cd glassfish
chmod -R +x lib/ant/bin
lib/ant/bin/ant -f setup-cluster.xml [You might need to set the ANT_HOME to glassfish/lib/ant]
Install
LB Plugin.
Download latest LB plugin from
http://download.java.net/javaee5/external/WINNT/aslb/jars/
[e.g aslb-9.1.1-b6.jar]
Extract jar to get SUNWaspx.zip
SUNWaslb.zip
mkdir glassfish/lib/plugin
cp the zips from step 2 and unzip
it in glassfish/lib/plugin [ make sure to remove the zip files from
this directory]
chmod -R 755 glassfish/lib/plugin/lib
Configure LB Plugin for Apache.
Create sub-directories in
<Apache-install>/modules directory as - resource and errorpages
Create sub-directory in
<Apache-install> directory as - sec_db_files