The Guide Presents a Step-by-Step Quick Getting-Started Glassfish3 Java JEE6 Application Server on Linux Debian Distro.
To Make the Entire Process Easier to Visualize and Retain the Articles Includes the Basic Screenshots of the Essentials Steps Involved.
The Content and Details of Guides are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut Easier to Read & Digest ;)
-
Installing Glassfish 3.1 JEE6 Server
How-Install GlassFish 3 on Debian - Open a Terminal Window
- Start GlassFish 3 Server
asadmin start-domain domain1
If you Changed the Default Domain Name then Adapt Consequently the Command...
If Do Not Find asadmin:
Try to Locate the asadmin Utility
which asadmin
If No Result then:
- Search for asadmin with Locate Command
locate asadmin
How-to Easy Find/Search Files/Directories/Images on Linux.
Linux How-to Use locate Command -
Modify System Variables and Path:
nano ~/.bashrc
Insert:export GLASSFISH3_HOME=</path/To>glassfish3 export PATH=$GLASSFISH3_HOME/bin:$PATH
Load System Set-Up:
source ~/.bashrc
- Search for asadmin with Locate Command
-
Download the HelloWorld.war Example File
- Deploy HelloWorld.war
sudo asadmin deploy </path/To>/hello.war
- View HelloWorld.war
On Browser Go To URL:
http://localhost:8080/hello
Make Correction If you Changed the Default Glassfish Port.