Getting StartedWith Sun Java System Application Server 9.1 Update 2



Similar documents
Sun GlassFish Enterprise Manager SNMP Monitoring 1.0 Installation and Quick Start Guide

How To Start A Glassfish V3 Application Server Quick Start (Windows) On A Microsoft Server (Windows 7)

Sun GlassFish Enterprise Manager Performance Monitor 1.0 Getting Started Guide

ProjectWebSynergy Milestone 4 Release Notes

Sun N1 Service Provisioning System User s Guide for Linux Plug-In 2.0

Sun Java System Connector for Microsoft Outlook 7.2 Installation Guide

Installation and Configuration

Sun Management Center 3.6 Version 5 Add-On Software Release Notes

Veritas Storage Foundation 5.0 Software for SPARC

N1 Grid Service Provisioning System 5.0 User s Guide for the Linux Plug-In

Sun TM SNMP Management Agent Release Notes, Version 1.6

Sun StorEdge Availability Suite Software Point-in-Time Copy Software Maximizing Backup Performance

Solaris 9 9/05 Installation Roadmap

How To Write A Release Note For Sun Open Telecommunications Platform 1.1.1

SUN SEEBEYOND ebam STUDIO RELEASE NOTES. Release 5.1.2

Sun Management Center 3.6 Version 4 Add-On Software Release Notes

Sun Management Center Change Manager Release Notes

Sun GlassFish Mobility Platform 1.1 Deployment Guide

Deployment Example 1: Access Manager 7.1 Load Balancing, Distributed Authentication UI, and Session Failover

Solaris 10 Documentation README

Sun StorEdge Enterprise Backup Software 7.2

Sun SNMP Management Agent Release Notes, Version 1.5.5

SUN SEEBEYOND egate INTEGRATOR RELEASE NOTES. Release 5.1.1

Sun StorEdge A5000 Installation Guide

Sun StorEdge RAID Manager Release Notes

Solaris 9 Installation Roadmap

Sun Fire B10n Content Load Balancing Blade Product Notes

Sun Enterprise Optional Power Sequencer Installation Guide

Sun Cluster 2.2 7/00 Data Services Update: Apache Web Server

Upgrading the Solaris PC NetLink Software

Sun Ultra TM. 5 and Ultra 10 Product Notes. Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA U.S.A.

Optimizing Solaris Resources Through Load Balancing

Sun OpenSSO Enterprise 8.0 Administration Guide

SCSI Sense Key Error Guide

Sun Fire 6800/4810/4800/3800 Systems Firmware Release Notes

RAID Controller PCI Card for the Sun Fire V60x and V65x Servers Release Notes

Sun StorEdge Network FC Switch-8 and Switch-16 Release Notes

SunFDDI 6.0 on the Sun Enterprise Server

Netra Data Plane Software Suite 2.0 Update 2 Release Notes

Service Level Definitions and Interactions

SunWeb Stack Installation and Configuration Guide

Java Device Test Suite Local Relay User s Guide

Sun StorEdge N8400 Filer Release Notes

Comparing JavaServer Pages Technology and Microsoft Active Server Pages

Sun N1 Grid Engine 6.1 Release Notes

Sun Management Center 3.5 Update 1b Release Notes

Brocade SilkWorm 4100 FC Switch Release Notes

Sun Integrated Lights Out Manager Supplement for the Sun Fire X4450 Server

Scrubbing Disks Using the Solaris Operating Environment Format Program

Sun StorEdge SAN Foundation Release Notes

Solaris Bandwidth Manager

Sun Ray, Smart Cards, and Citrix

Sun Enterprise 420R Server Product Notes

Service Level Agreement in the Data Center

JumpStart : NIS and sysidcfg

Sun Grid Engine Release Notes

Sun Fire V480 Server Product Notes

Exploring the iplanet Directory Server NIS Extensions

Power Savings in the UltraSPARC T1 Processor

Sun StorEdge T3 Dual Storage Array - Part 1

Java Dynamic Management Architecture for Intelligent Networks

LAN-Free Backups Using the Sun StorEdge Instant Image 3.0 Software

Important Note on New Product Names

HelloWorld SOAP Sample:

Start Here. Installation and Documentation Reference. Sun StorEdgeTM 6120 Array

Sun Fire V20z Server Release Notes

Sun Ray Server Software 3 Release Notes

Brocade 5300 Switch Hardware Release Notes

Reducing the Backup Window With Sun StorEdge Instant Image Software

Automating Centralized File Integrity Checks in the Solaris 10 Operating System

Brocade 300 Switch Hardware Release Notes

Sun Blade 1500 Workstation Product Notes

Managing NFS Workloads

Sun Integrated Lights Out Manager (ILOM) 3.0 Supplement for the Sun Fire X4150, X4250 and X4450 Servers

Netra X4200 M2 Server Site Planning Guide

A Strategy for Managing Performance

Disaster Recovery Requirements Analysis

Sun Fire 6800/4810/4800/3800 Systems Software Release Notes

N1 Grid Engine 6 Release Notes

Sun Cobalt Control Station. Using the LCD Console

Runtime Environment Specification

Sun Java Enterprise System 5 Release Notes for UNIX

Sun Blade 100 and Sun Blade 150 Workstations

Distributed Application Management using Jini Connection Technology

Java SE Monitoring and Management Guide

Sun StorEdge network FC switch-8 and switch-16 Release Notes

Developing a Security Policy

Sun SM Remote Services Net Connect Solaris TM 9 4/04

Solaris Resource Manager

The UltraSPARC T1 Processor - High Bandwidth For Throughput Computing

Using Linux mdadm Multipathing with Sun StorEdge Systems

Rapid Recovery Techniques: Exploring the Solaris Software Registry

Java Management Extensions SNMP Manager API

Transcription:

Getting StartedWith Sun Java System Application Server 9.1 Update 2 Student Guide Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. August 2008

Copyright 2008 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. All rights reserved. Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more U.S. patents or pending patent applications in the U.S. and in other countries. U.S. Government Rights Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. This distribution may include materials developed by third parties. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun logo, the Solaris logo, the Java Coffee Cup logo, docs.sun.com, Enterprise JavaBeans, EJB, GlassFish, J2EE, J2SE, JavaBeans, Javadoc, JDBC, JDK, JavaScript, JavaServer Pages, JSP, JVM, NetBeans, SunSolve, Java, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. or its subsidiaries in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun TM Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun's licensees who implement OPEN LOOK GUIs and otherwise comply with Sun's written license agreements. Products covered by and information contained in this publication are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical or biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited. DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID. Copyright 2008 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. Tous droits réservés. Sun Microsystems, Inc. détient les droits de propriété intellectuelle relatifs à la technologie incorporée dans le produit qui est décrit dans ce document. En particulier, et ce sans limitation, ces droits de propriété intellectuelle peuvent inclure un ou plusieurs brevets américains ou des applications de brevet en attente aux Etats-Unis et dans d'autres pays. Cette distribution peut comprendre des composants développés par des tierces personnes. Certaines composants de ce produit peuvent être dérivées du logiciel Berkeley BSD, licenciés par l'université de Californie. UNIX est une marque déposée aux Etats-Unis et dans d'autres pays; elle est licenciée exclusivement par X/Open Company, Ltd. Sun, Sun Microsystems, le logo Sun, le logo Solaris, le logo Java Coffee Cup, docs.sun.com, Enterprise JavaBeans, EJB, GlassFish, J2EE, J2SE, JavaBeans, Javadoc, JDBC, JDK, JavaScript, JavaServer Pages, JSP, JVM, NetBeans, SunSolve, Java et Solaris sont des marques de fabrique ou des marques déposées de Sun Microsystems, Inc., ou ses filiales, aux Etats-Unis et dans d'autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d'autres pays. Les produits portant les marques SPARC sont basés sur une architecture développée par Sun Microsystems, Inc. L'interface d'utilisation graphique OPEN LOOK et Sun a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d'utilisation visuelle ou graphique pour l'industrie de l'informatique. Sun détient une licence non exclusive de Xerox sur l'interface d'utilisation graphique Xerox, cette licence couvrant également les licenciés de Sun qui mettent en place l'interface d'utilisation graphique OPEN LOOK et qui, en outre, se conforment aux licences écrites de Sun. Les produits qui font l'objet de cette publication et les informations qu'il contient sont régis par la legislation américaine en matière de contrôle des exportations et peuvent être soumis au droit d'autres pays dans le domaine des exportations et importations. Les utilisations finales, ou utilisateurs finaux, pour des armes nucléaires, des missiles, des armes chimiques ou biologiques ou pour le nucléaire maritime, directement ou indirectement, sont strictement interdites. Les exportations ou réexportations vers des pays sous embargo des Etats-Unis, ou vers des entités figurant sur les listes d'exclusion d'exportation américaines, y compris, mais de manière non exclusive, la liste de personnes qui font objet d'un ordre de ne pas participer, d'une façon directe ou indirecte, aux exportations des produits ou des services qui sont régis par la legislation américaine en matière de contrôle des exportations et la liste de ressortissants spécifiquement designés, sont rigoureusement interdites. LA DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS, DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT EXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON. 080811@20795

Contents 1 Installing Sun Java System Application Server...5 Installing Sun Java System Application Server With MySQL Community Server...6 2 Getting StartedWith the Application Server Administrative Interfaces...9 Getting Started With the Application Server Command-Line Interface (CLI)...10 Getting Started With the Admin Console GUI...14 3 Deploying an Application and Monitoring the Application Server...17 Deploying the hello Sample Application...18 Monitoring the Application Server...20 4 Extending the Application ServerThrough the Update Center...23 Adding the Java EE 5 Samples Module to the Application Server Through the Update Center...24 5 Resources for Using Application Server... 27 Sources of Information...28 3

4

1M ODULE 1 Installing Sun Java System Application Server Objectives Learn how to install Sun Java System Application Server 5

Installing Sun Java System Application ServerWith MySQL Community Server Installing Sun Java System Application ServerWith MySQL Community Server The objective of this exercise is to teach you how to install Sun Java System Application Server With MySQL Community Server from the instructions in the product documentation. Preparation Ensure that the following prerequisites are met: Sun Java System Application Server+MySQL bundle is downloaded. Java 2 SDK, version 6.0 or a compatible version is installed on the machine where you are installing the Sun Java System Application Server+MySQL bundle. Summary In this exercise, you will install Sun Java System Application Server With MySQL Community Server with default options. 6 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008

Installing Sun Java System Application ServerWith MySQL Community Server To Install Sun Java System Application ServerWith MySQL Community Server 1 Follow the instructions to install Sun Java System Application Server with MySQL Community Server (http://docs.sun.com/doc/820-3797/ggkew) in Sun Java System Application Server 9.1 Update 1 Installation Guide. When the installation wizard prompts you, specify the following options: Default installation directory Default port assignments Default administration user name admin Administration user name and password stored in a file No upgrade Update Center Client not enabled No registration with the Sun SM Connection service No automatic start-up of the default domain Module 1 Installing Sun Java System Application Server 7

Installing Sun Java System Application ServerWith MySQL Community Server Discussion The benefits of registering the Sun Java System Application Server with the Sun Connection service are explained in the index.html page in the document root folder of this domain's default virtual server. This page is available at http://localhost:8080 on any host where a domain is running. 8 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008

2 MODULE 2 Getting Started With the Application Server Administrative Interfaces Objectives Become familiar with the Application Server administrative interfaces: Command-line interface (CLI) Admin Console graphical user interface (GUI) Additional Resources Tools for Administration (http://docs.sun.com/doc/819-3671/ablav) in Sun Java System Application Server 9.1 Administration Guide. 9

Getting StartedWith the Application Server Command-Line Interface (CLI) Getting Started With the Application Server Command-Line Interface (CLI) The objectives of this exercise are as follows: To familiarize you with the Application Server CLI To teach you how to start the default domain of an Application Server installation Summary This exercise demonstrates the following features of the Application Server CLI: The asadmin utility is the Application Server CLI. Application Server administrative tasks are performed through subcommands of the asadmin utility. The asadmin utility displays close matches for mistyped subcommands. Online help is available for the asadmin utility and for each subcommand. Subcommands can be run as follows: From within the asadmin utility At the shell's command prompt This exercise also demonstrates how to start the default domain on the different platforms on which the Application Server is supported. 10 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008

Getting StartedWith the Application Server Command-Line Interface (CLI) To Explore the asadmin Utility 1 2 3 4 5 In a terminal or shell window, change to the bin subdirectory of the Application Server installation directory. prompt% cd as-install/bin as-install Start the asadmin utility. The directory where the Application Server software is installed. prompt% asadmin Use "exit" to exit and "help" for online help. asadmin> Obtain a list of the subcommands of the asadmin utility. asadmin> help Mistype a subcommand of the asadmin utility. asadmin> start-domian CLI147 Invalid command, start-domian Closest matching command(s): start-domain Use "help" command for a list of valid commands. Obtain help for the start-domain subcommand of the asadmin utility. a. Obtain help for the subcommand from within the asadmin utility. asadmin> help start-domain b. Exit the asadmin utility. asadmin> exit c. Obtain help for the subcommand at the shell's command prompt. prompt% asadmin start-domain --help more Module 2 Getting StartedWith the Application Server Administrative Interfaces 11

Getting StartedWith the Application Server Command-Line Interface (CLI) To Start the Default Domain 1 Follow the instructions in Sun Java System Application Server 9.1 Administration Guide (http://docs.sun.com/doc/819-3671) for your operating system. For the Solaris TM operating system or Linux operating system, follow the instructions in Starting the Domain (http://docs.sun.com/doc/819-3671/ablbf). For the Windows operating system, follow the instructions in Starting the Default Domain on Windows (http://docs.sun.com/doc/819-3671/ablbg). 2 Confirm that the domain is running by viewing the index.html page at http://localhost:8080 on the host where the domain is started. 12 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008

Getting StartedWith the Application Server Command-Line Interface (CLI) Discussion More information about the Application Server, samples, documentation, and additional resources, is available at as-install/docs/about.html, where as-install is the Application Server installation directory. Module 2 Getting StartedWith the Application Server Administrative Interfaces 13

Getting StartedWith the Admin Console GUI Getting StartedWith the Admin Console GUI The objectives of this exercise are as follows: To familiarize you with the Admin Console GUI To teach you how to obtain more information about the Application Server from the Admin Console GUI Summary This exercise demonstrates the following features of the Admin Console GUI: The Admin Console GUI is browser based. The navigation tree of the Admin Console GUI provides easy access to the objects that are to be administered through the GUI. Context sensitive online help is available for each page in the Admin Console GUI. 14 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008

Getting StartedWith the Admin Console GUI To Explore the Admin Console GUI 1 2 3 4 5 6 7 8 9 10 Follow the instructions in Administration Console (http://docs.sun.com/doc/819-3671/ablaw) in Sun Java System Application Server 9.1 Administration Guide to start the Admin Console on the machine where you installed the Application Server software. Log in to the Admin Console GUI with the default administration user name admin and the password that you specified when you installed the Application Server software. The Common Tasks page is displayed with the navigation tree to the left of the page. In the navigation tree, select the Application Server node. The Application Server General Information page is displayed. In the Application Server General Information page, click Help. Context-sensitive help for this page is displayed. In the navigation tree, expand the Configuration node. Under the Configuration node, select something that can be configured, for example Monitoring. The appropriate page is displayed. In the page that is displayed, click Help. The help is updated to display context-sensitive help for this page. Click Home to return to the CommonTasks page. Under Documentation, click Developer's Guide. The table of contents for Sun Java System Application Server 9.1 Developer's Guide on the docs.sun.com SM site (http://docs.sun.com) is opened. Log out of the Admin Console. Module 2 Getting StartedWith the Application Server Administrative Interfaces 15

16

3 MODULE 3 Deploying an Application and Monitoring the Application Server Objectives Learn how to deploy an application in the Application Server. Become familiar with the monitoring capabilities of the Application Server. 17

Deploying the hello Sample Application Deploying the hello Sample Application The objective of this exercise is to teach you how to use the Admin Console to deploy an application in the Application Server. Summary In this exercise, you will use the Admin Console to deploy a prepackaged web application in the Application Server. 18 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008

Deploying the hello Sample Application To Deploy the hello Sample Application 1 Follow the instructions in Sun Java System Application Server 9.1 Quick Start Guide to deploy the hello application by using Admin Console (http://docs.sun.com/doc/819-3193/geyxd). Module 3 Deploying an Application and Monitoring the Application Server 19

Monitoring the Application Server Monitoring the Application Server The objectives of this exercise are as follows: To teach you how to enable monitoring for the Application Server To introduce the data that the Application Server gathers through monitoring and in log files Summary In this exercise, you will use the Admin Console to familiarize yourself with the monitoring features of the Application Server. 20 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008

Monitoring the Application Server To Monitor the Application Server 1 2 Follow the instructions in Sun Java System Application Server 9.1 Administration Guide to use the Admin Console to set the monitoring level (http://docs.sun.com/doc/819-3671/ablvq) to LOW for the following components and services: JVM Web Container Thread Pool Follow the instructions in the Admin Console online help to perform the following tasks: a. Configure call flow monitoring. b. View monitoring data. c. Configure the log level of the web container. d. View the server log. Module 3 Deploying an Application and Monitoring the Application Server 21

22

4 MODULE 4 Extending the Application Server Through the Update Center Objectives Learn how to use the Update Center to extend the Application Server. 23

Adding the Java EE 5 Samples Module to the Application ServerThrough the Update Center Adding the Java EE 5 Samples Module to the Application Server Through the Update Center The objectives of this exercise are as follows: To teach you how to extend the Application Server through the Update Center To add the Java EE 5 Samples module in preparation for a future lab session Summary In this exercise, you will use the Update Center to add the Java EE 5 Samples module to your installation of the Application Server. 24 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008

Adding the Java EE 5 Samples Module to the Application ServerThrough the Update Center To Add the Java EE 5 Samples Module to the Application Server Through the Update Center 1 2 3 Follow the instructions in Using the Application Server Update Center (http://docs.sun.com/doc/820-3530/gewof) in Sun Java System Application Server 9.1 Update 1-9.1 Update 2 Release Notes to enable the Update Center to check for updates everytuesday at 3 PM. In the Update Center window, click Help. Follow the instructions in the Update Center online help to install the Java EE 5 Samples module. Module 4 Extending the Application ServerThrough the Update Center 25

26

5 MODULE 5 Resources for Using Application Server Objectives Understand where to find information about how to use Sun Java System Application Server 9.1 Update 2. 27

Sources of Information Sources of Information Application Server product documentation: Sun Java System Application Server 9.1 Update 1-9.1 Update 2 manuals: Manual title listing (http://docs.sun.com/coll/1343.5) Topic listing (http://docs.sun.com/doc/819-3668/fxiwa) Admin Console GUI online help Inline help and system text CLI help Introductory pages that are bundled with the product: index.html (http://localhost:8080) as-install/docs/about.html as-install/docs/features.html as-install/docs/quickstart.html Additional resources: GlassFish User FAQ (http://wiki.glassfish.java.net/wiki.jsp?page=glassfishuserfaq) GlassFish Developer FAQ (http://wiki.glassfish.java.net/ Wiki.jsp?page=GlassFishDeveloperFAQ) 28 Getting StartedWith Sun Java System Application Server 9.1 Update 2 August 2008