Step-by-Step Install Guide Sun GlassFish Enterprise Server v3 on Windows Server2008 R2

Document Sample
Step-by-Step Install Guide Sun GlassFish Enterprise Server v3 on Windows Server2008 R2 Powered By Docstoc
					Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0



                            Global Open Versity
             Systems Integration Hands-on Labs Training Manual

    Step-by-Step Install Guide Sun GlassFish Enterprise Server v3
                         on Windows 2008 R2
                                         Kefa Rabah
                            Global Open Versity, Vancouver Canada
                                  krabah@globalopenversity.org
                                   www.globalopenversity.org



 Table of Contents                                                                                Page No.


 STEP-BY-STEP INSTALL GUIDE SUN GLASSFISH ENTERPRISE SERVER V3
 ON WINDOWS SERVER2008 R2                                                                                    3
 Introduction                                                                                                3

 Part 1: Install JDK6                                                                                        4

 Part 2: Install GlassFish                                                                                   5
   Step 1: Install Sun GlassFish v2 domain1 server                                                           5
   Step 2: Prepare GlassFish Domain1 to Support OpenSSO                                                     14
   Step 3: Create a Second GlassFish Domain2                                                                14
   Step 4: Deleting a GlassFish Domain                                                                      17

 Part 3: Install Sun OpenSSO Enterprise 8.0 on GlassFish Domain1                                            18

 Part 4: Need More Training on Linux:                                                                       23
   Sun GlassFish Training                                                                                   23

 Part 5: Hands-on Labs Assignments                                                                          24

 Linux Training                                                                                             24




 A GOV Open Knowledge Access Technical Academic Publications License
 Enhancing education & empowering people worldwide through eLearning in the 21st Century


                                                                                                             2
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0



                            Global Open Versity
             Systems Integration Hands-on Labs Training Manual

       Step-by-Step Install Guide Sun GlassFish Enterprise Server v3
                        on Windows Server2008 R2
   By Kefa Rabah, krabah@globalopenversity.org            June 4, 2010                       GTS Institute


 Introduction
 Windows Server® 2008 R2: Microsoft wants administrators of Windows Server 2008 editions (which
 ships in the usual flavors of Standard, Enterprise, Data Center and Itanium-specific code) to think of
 the server as playing certain roles. Server roles are aggregated objects that suit commonly thought-of
 services, such as print services, file sharing, DNS, DHCP, Active Directory Domain Controller and IIS-
 based Web services. Microsoft has defined 18 roles in all.

 Microsoft Active Directory provides the structure to centralize the network management and store
 information about network resources across the entire domain. Active Directory uses Domain
 Controllers to keep this centralized storage available to network users. In order to configure a
 Windows Server 2008 machine to act as Domain Controller, several considerations and prerequisites
 should be taken into account, and several steps should be performed. Domain Controller requires that
 a DNS server is installed and configured appropriately.

 The Sun GlassFishTM Enterprise Server (GlassFish server) now is a comprehensive support
 offering for GlassFish, the leading open-source and open community platform for building and
 deploying the next-generation applications and services. It’s ideal for service-oriented architectures
 (SOA) and rich Internet applications utilizing Java EE, PHP, AJAX and JRuby. It also includes LAMP
 and Portal Technology Updates and Supports the Preview of the Full Java EE 6 Specifications.

 The Sun GlassFish v3, built by the GlassFish community, is the first compatible implementation of the
 Java EE 6 platform specification. Many of the Java EE 6 themes carry over to Sun GlassFish
 Enterprise Server v3 – flexibility, extensibility, and developer ease of use. This lightweight, flexible,
 and open-source application server enables organizations to not only leverage the new capabilities
 introduced within the Java EE 6 specification, but also to add to their existing capabilities through a
 faster and more streamlined development and deployment cycle.

 Sun OpenSSO Enterprise 8.0 (formerly Sun Java System Access Manager and Sun Federation
 Manager) is a next-generation federated access management solution. It provides the capabilities
 you need to quickly and easily extend your reach while reducing risk - all in a single, self-contained
 Java application. This unified solution provides secure and centralized access control and single
 sign-on (SSO) for internal and external applications and Web services. OpenSSO Enterprise is a
 commercial offering based on OpenSSO, the world's largest open source, identity management
 project, providing highly scalable, high-performance capabilities for SSO, access management,
 federation, and secure


                                                                                                             3
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0



 This step-by-step how-to hands-on lab explains through step-by-step how to install Sun GlassFish
 Enterprise Server v3 on Windows Sever 2008 R2 Active Directory with Exchange Server 2007.
 You’ll learn how to setup two domains: domain1 and domain2, with domain1 used to host OpenSSO
 server; while other applications and services are hosted on domain2. Next, you’ll learn how ton
 install and configure Sun OpenSSO Enterprise 8.0 on domain1 to support Single-Sign-On (SSO). In
 the follow-up lab modules, you’ll get more training on extending and experimenting with the
 OpenSSO, OpenDS (LDAP) and other applications and services. Others will include how to deploy
 SAMLv2 for identity management and authentication. The instructions are all implemented on
 Windows Server 2008 R2 machine running on VMware for pilot testing.

 Solution:
 In this Lab session, you’ll learn how to setup virtual network on VMware (you may also use any other
 virtual machines like MS VirtualPC, Linux Xen, or VirtualBox from Sun). It’s assumed that you know
 how to install Linux CentOS5. Next you will learn how to install and setup Sun JDK6. You’ll also
 learn how to install & setup Sun GlassFish Enterprise Server v3 on Windows Serve 2008 R2. Next,
 you’ll learn how to setup Sun OpenSSO. Finally you’ll have an opportunity to do the Hands-on Labs
 home assignment labs to test what you have learned in this lab session. Once you’re done with this
 labs session you should have gained an experience and capability to enable you to plan design
 implement and deploy Sun GlassFishTM v3 Enterprise Server with two domains for enterprise
 business infrastructure.

 Assumptions:
 It’s assumed that you have a good understanding of Windows Server 2008 operating system and its
 working environment. It’s also assumed that you know how to install and configure Windows Server
 2008 Active Directory Domain Controller, if not go ahead and pop over to docstoc.com and check
 out the following articles to get you started:

     • Install Guide Windows Server 2008 Active Directory DC
     • Install Guide MS Exchange Server 2007 on Windows Server 2008 Active Directory


 Part 1: Install JDK6
 1. Java is required for installing and running Sun GlassFish Enterprise server v3. To download
    Java SE SDK 6, just go to http://java.sun.com/javase/downloads/index.jsp,
    and follow the instructions to download it.

 2. When download is complete, you will be prompted by the Windows Installer, click Run and
    follow the instruction to install it on your Windows machine, in our case its Windows Server 2008
    R2.

 3. Next, we need to set environment for Java home. To do this, from the command-line (CMD)
    window type one this depending on your installation path (ours is the second option):

     set JAVA_HOME=c:\jdk1.6.0_20
     set JAVA_HOME=c:\Program Files\Java\jdk1.6.0_20


                                                                                                             4
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0



 4. We’re done with this section


 Part 2: Install GlassFish
 This section explains how to install Sun GlassFishTM Enterprise Server v3 (GlassFish Server) as an
 eventual container for OpenSSO server and other capabilities and services as desired. This is all
 being performed on a Linux CentOS5 machine running on VMware for pilot testing. The objective is
 to eventually deploy OpenSSO on GlassFish domain1. Thereafter create a second glassfish
 domain (domain2) to deploy other applications and services on the Application Server.


 Step 1: Install Sun GlassFish v2 domain1 server
 To perform the setup, installation and configuration of GlassFish server do the following steps:

 1. To get the latest GlassFish builds point your browser to:

     https://glassfish.dev.java.net/downloads/v3-final.html

 2. At the time of writing this article, the version we downloaded was, Sun GlassFish Enterprise
    Server v3: "sges-v3-windows.exe". When download is completed, Windows Installer will
    prompt you to click Run or Cancel. Click Run to start the installation. This will start the Wizard
    which creates a glassfishv3 directory with everything inside it, see Fig. 1.




                                                                                               Fig. 1


 3. Wait for the Wizard to complete initializing to access the Welcome page, Fig. 2, then click Next.




                                                                                                             5
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0




                                                                                               Fig. 2
 4. From Fig. 3, scroll and read the agreement, accept the License and then click Next.




                                                                                               Fig. 3

                                                                                                             6
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0



 5. From 4, the Installation Directory, accept the default directory and then click Next.




                                                                                            Fig. 4
 6. On the Administration Settings screen, accept the default options and under Password, type
    your password then click Next.




                                                                                            Fig. 5
                                                                                                             7
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0



 7. On the Update Configuration screen, Fig. 6, check Install Update Tool & Enable Update Tool




                                                                                            Fig. 6
 8. On the JDK Selection page, Fig. 7, verify the Java install path; and then click Next.




                                                                                            Fig. 7

                                                                                                             8
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0



 9. From Fig. 8, on the Ready To Install click Install to start the installation process




                                                                                               Fig. 8
 10. On the Progress page, Fig. 9, grab a cup-a-coffee and enjoying watching the progress bar!




                                                                                            Fig. 9
                                                                                                             9
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0



 11. From Fig. 10, on the Product Registration, select the desired option and click Next




                                                                                            Fig. 10


 12. When Product Registration progress is completed, an Alert Window pops-up as shown in
     Fig. 11, click OK to close it.




                                                                           Fig. 11


 13. From Fig. 12, on the Summary page, review installed packages, then click Exit to complete the
     installation process.




                                                                                                            10
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0




                                                                                                  Fig. 12


 14. After a successful installation, click Start   All Programs      Sun GlassFish Enterprise
     Server v3. Here you have various options you can use to manage your GF server. For example
     to start your GF Server, click Start Application Server or click Stop Application Server to stop it,
     as shown in Fig. 13.




                                                                             Fig. 13

     Alternatively, you can also use the command-line option to manage your GF server. To do this,
     change to the glassfishv3/bin directory, and then type asadmin to invoke the GS
     command-line admin utility, as shown in Fig.14.

                                                                                                            11
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada

www.globalopenversity.org                                 ICT204 –Sun GlassFish Administration Training
  Global Open Versity ICT Labs    Step-by-Step Install Guide Sun Enterprise GlassFish server v3 on Win2k8 R2 v1.0




                                                                            Fig. 14

       Next, issue this command to start domain1:

       asadmin> start-domain domain1

       as shown in Fig. 15.




                                                                                                      Fig. 15

       Note: from Fig. 15, you can see that the Admin port for domain1 is: 4848, by default server port
       is 8080.

   15. Using a browser, verify that the domian1 server is running by accessing:

       http://server01.rabahtech.com:8080

       You should get a "Your server is now running" page, as shown in Fig. 16:




   .                                                                                             Fig. 16
16. You can access the Admin Console by clicking the link in Fig. 16, or opening a new page, as shown
   in Fig. 14, login to domain1 of GlassFish as admin and Password: adminadmin, by accessing the
   URL: http://server01.rabahtech.com:4848.

               
				
DOCUMENT INFO
Shared By:
Stats:
views:2378
posted:6/4/2010
language:English
pages:24
Description: Introduction In this Hands-on Labs, we're going to install GlassFish v2 on Windows Server 2008 R2. Windows Server 2008 R2: Microsoft wants administrators of Windows Server 2008 editions (which ships in the usual flavors of Standard, Enterprise, Data Center and Itanium-specific code) to think of the server as playing certain roles. Server roles are aggregated objects that suit commonly thought-of services, such as print services, file sharing, DNS, DHCP, Active Directory Domain Controller and IIS-based Web services. Microsoft has defined 18 roles in all. Microsoft Active Directory provides the structure to centralize the network management and store information about network resources across the entire domain. Active Directory uses Domain Controllers to keep this centralized storage available to network users. In order to configure a Windows Server 2008 machine to act as Domain Controller, several considerations and prerequisites should be taken into account, and several steps should be performed. Domain Controller requires that a DNS server is installed and configured appropriately. The Sun GlassFishTM Enterprise Server (GlassFish server) now is a comprehensive support offering for GlassFish, the leading open-source and open community platform for building and deploying the next-generation applications and services. It’s ideal for service-oriented architectures (SOA) and rich Internet applications utilizing Java EE, PHP, AJAX and JRuby. It also includes LAMP and Portal Technology Updates and Supports the Preview of the Full Java EE 6 Specifications. The Sun GlassFish v3, built by the GlassFish community, is the first compatible implementation of the Java EE 6 platform specification. Many of the Java EE 6 themes carry over to Sun GlassFish Enterprise Server v3 – flexibility, extensibility, and developer ease of use. This lightweight, flexible, and open-source application server enables organizations to not only leverage the new capabilities introduced wit
BUY THIS DOCUMENT NOW PRICE: $19.95 100% MONEY BACK GUARANTEED
PARTNER Kefa  Rabah
Kefa Rabah is the Founder of Global Technology Solutions Institute. Kefa is knowledgeable in several fields of Science & Technology (www.gtechsi.ca), Information Security Compliance and Project Management, and Renewable Energy Systems. He is also the founder of Global Open Versity (www.globaopenversity.org), a place to enhance your educating and career goals using the latest innovations and technologies.