Glassfish Quickstart

Prerequisite:

  1. Install Oracle Java 6 or 7. Follow this link for quick install
    https://easierit.wordpress.com/2013/10/13/quickly-install-java-6-or-7-in-ubuntu-12-04-lts/
  2. Download glassfish from https://glassfish.java.net/download.html

Install unzip in Ubuntu:

sudo apt-get unzip

Unzip glassfish:

sudo unzip glassfish-4.0 zip

Change directory to glassfish directory:

cd glassfish4/bin

To start domain:

./asadmin start-domain

To use admin console, secure admin must be enabled. Admin must be changed to enable secure admin:

./asadmin change-admin-password
# Default password for admin is blank ("") ; Then enter new password for admin user.
./asadmin enable-secure-admin
# Enter admin for the username, then the password set.

To stop domain:

./asadmin stop-domain

To deploy application through console:

./asadmin deploy APP-LOCATION

To undeploy application:

./asadmin undeploy APP-NAME
Advertisements

Leave a Reply

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

WordPress.com Logo

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

Google+ photo

You are commenting using your Google+ 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 )

w

Connecting to %s