Wednesday, April 23, 2014

How to install Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting

As you know, Oracle GlassFish application Server is a Java-ee supported application server which provides a flexible, lightweight and production-ready Java-ee-6 and java-ee-7 platform for java-ee based web applications deployment and webhosting.We can use Glassfish application server as our own custom dedicated application server for our java-ee based (JSP, Serverlet, JSF, Primefaces, Oracle ADF etc) applications hosting. It is available as open source and as will with commercial support from Oracle.

In this tutorial we will learn how to install Oracle GlassFish application Server open source V4 at windows platform for Java-ee based web applications deployment and web-hosting. 


For installation Oracle Glassfish app-server, latest version of Java JDK / JRE should be installed at your Computer machine. Java EE 7 requires JDK 7 or above.

Now we first download the required version of Glassfish app-server from official website which is in our case is Oracle GlassFish application server Open source edition V4.

Click here to download Oracle GlassFish Application Server

Below is the official downloading page for GlassFish server open source Edition 4.0. Here two types of Zip files are available. We will download 2nd option of specific installer for Java-EE-7

Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server

Save downloaded file of Glassfish-4.0.zip at your specific location and unzip it as showing in below mentioned snapshot.


Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server

Open the location " \glassfish-4.0\glassfish4\bin " and double click at asadmin.bat, a command window will be open as showing below

Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server



Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server



Write start-domain command after asadmin> as showing in below snapshot to start GlassFish application server domain. ( asadmin> start-domain )

This process can also start by giving command "glassfish4\bin\asadmin start-domain " after changing path to desired location.


Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server

GlassFish application server process has been started. A window for Security alert will open, click on unblock for unblock the server process

Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server


Results of commands is showing below

asadmin> start-domain
Waiting for domain1 to start ...................................................
.....
Successfully started the domain : domain1
domain  Location: D:\asif\glassfish-4.0\glassfish4\glassfish\domains\domain1
Log File: D:\asif\glassfish-4.0\glassfish4\glassfish\domains\domain1\logs\server
.log
Admin Port: 4848
Command start-domain executed successfully.
asadmin>


Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server

GlassFish Application Server has been started and now we can open server admin console. Click on below link to open admin console.
http://localhost:4848
Below is the admin console view of GlassFish Application Server. Here you can manage all the tasks of GlassFish application server.

Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server

Below snapshot is showing all common tasks which can be managed from GlassFish Application server.like Domain management, Server Administration, Clusters management, Nodes management, Resources (Connector, JMS, JavaMail session, JNDI etc), deployed applications management, Web container, EJB Container etc.


Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server


How to Stop and restart GlassFish Application Server :

We can stop GlassFish application in two ways. First Click at Server (Admin Server), here you can see stop and restart button for stopping and restarting the GlassFish Server. To stop GlassFish Server, click on stop button and process further, server will be stopped and admin consol will be closed. To restart the GlassFish application server, click on restart button, Application server will be restart, admin console will be refreshed. 

Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server

The second way to stop Glassfish application server is to write stop-domain command after asadmin in already open command window. ( asadmin> stop-domain) as showing in below snapshot.

Installation of Oracle-GlassFish Application Server V4 for Java-ee Web Applications hosting, Java Server, glassfish jee application-server, Java Webhosting Server, jee app server, Oracle-app-server, open source java application server, java-ee application hosting, java web action, javawebaction, java web development, oracle adf hosting, jsp hosting, ejb hosting, jsf hosting, jsf application server

Congratulation we have been successfully learned, how to download GlassFish Application server and how to install it. How to stop, start and restart the GlassFish Application Server at Window platform. From this way, we can use GlassFish application server for our Java-ee 7 applications deployment and for reliable secure web hosting.  
Related Topics:
What is Oracle GlassFish Java-EE Web Application Server 
 
How to register GlassFish Java-EE Application Server V4 with NetBeans-IDE

An overview of Oracle GlassFish Java EE Application Server Administration tools

9 comments:

  1. professional Web Development Company esparkinfo solution. He has a great experience about the, Web Development Services, logo design services, graphic design services and internet marketing service

    ReplyDelete
  2. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
    Web Designing Companies Bangalore | Web Designing Bangalore

    ReplyDelete
  3. I am extremely impressed thanks for sharing all information. It is a great post for the people to get the proper information.
    website development company in United States

    ReplyDelete
  4. The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents...Great job, keep it up..
    Web development Company in India Company | Web development Company Bangalore
    Web development Company in Bangalore | Responsive Web development

    ReplyDelete
  5. Really informative. .. In regards to increasing trend in web development it's mine to go with top most ecommerce development firms using latest techniques.

    ReplyDelete
  6. This blog have a good information and good article, keep more share your updating.
    Website Design Bangalore | Web Development Company Bangalore

    ReplyDelete

Please enter relevant question and information.