Glassfish 4.0.1 on Ubuntu 14.04

Install notes:

Install Java JDK 8 and unzip
sudo -s
aptitude update
aptitude install --with-recommends software-properties-common
add-apt-repository ppa:webupd8team/java
aptitude update
aptitude --with-recommends install oracle-java8-installer unzip

Verify your java install
java -version

Should get out put of something like
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

Download and unzip Glassfish 4.0.1
unzip -d /opt

Startup Glassfish just to make sure all is well
cd /opt/glassfish4/bin
./asadmin start

Install the start/stop scripts for Glassfish
./adadmin create-service

Change the blank/empty admin password to something else
./asadmin change-admin-password

Enable secure administration so you can administer via web interface from another PC
./asadmin enable-secure-admin

Enable a listener port so that you can front Glassfish with Apache
./asadmin create-network-listener --protocol http-listener-1 --listenerport 8009 --jkenabled true jk-connector

Copy some JDBC drivers not included in default installation (Optional of course)
cp jtds-1.3.1.jar /opt/glassfish4/glassfish/domains/domain1/lib/ext (MS-SQL Driver)
cp postgresql-9.3-1101.jdbc41.jar.jar /opt/glassfish4/glassfish/domains/domain1/lib/ext (PostgreSQL Driver)

Copy useful jars that are useful (requried?) by/for some PrimeFaces functionality (Optional of course)
cp commons-codec-1.9.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp commons-file-upload-1.3.1.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp commons-io-2.4.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp commons-logging-1.1.3.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp commons-math3-3.3.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp dom4j-1.6.1.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp itext-2.1.7.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp poi-3.11-beta1-20140428.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp poi-ooxml-3.11-beta1-20140428.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp primefaces-5.0.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp rome-1.0.jar /opt/glassfish4/glassfish/domains/domain1/lib
cp xmlbeans-2.3.0.jar /opt/glassfish4/glassfish/domains/domain1/lib

I'm looking forward to the release of Glassfish v4.1 and will post my install notes upon its release

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s