Sun ONE Application Server 7 Administrator's Guide |
Chapter 1
Getting Started with Sun ONE Application Server AdministrationThis chapter describes the basics of administering Sun ONE Application Server: where to find general information about the server, how to access the server’s user interfaces, and how to access online help.
This chapter includes the following sections:
About Sun ONE Application ServerThe Sun ONE Application Server provides a robust J2EE platform for the development, deployment, and management of e-commerce application services to a broad range of servers, clients, and devices. Key features include transaction management, performance, scalability, security, and enterprise application integration.
Sun ONE Application Server supports services from web publishing to enterprise-scale transaction processing, while enabling developers to build applications based on JavaServer Pages (JSP), Java Servlet and Enterprise JavaBeans (EJB) technology.
It contains the following basic tools for administrators:
- Multiple administrative domains that allow different administrators to create and manage their own set of application server instances.
- An Administration Server that provides administration facilities (one Administration Server per domain)
- A graphical user interface for server administration (the Administration interface)
- A command-line interface you can use to perform the same tasks as the Administration interface
Use these tools to perform all administrative functions, including:
- Administering domains
- Managing server instances
- Deploying applications
- Monitoring the server
- Using log files
- Administering resources
- Administering a Message Queue server
- Using transaction services
- Using Corba/IIOP clients
- Configuring the web server plug-in
- Configuring J2EE containers
- Administering HTTP server features
For more information about the Sun ONE Application Server architecture and features, and for initial steps to take with your Sun ONE Application Server, see the Sun ONE Application Server Getting Started Guide.
Configuring the Bundled Solaris VersionThis guide refers to two kinds of Sun ONE Application Server installations for Solaris: Solaris 9 bundled and unbundled. If you received your copy of the Sun ONE Application Server as part of the Solaris 9 installation, you have the Solaris bundled version. If you have a standalone copy of the Sun ONE Application Server, you have the unbundled version.
Note
If you are using the unbundled Solaris version of the Sun ONE Application Server, or if you are using the Windows version, please skip this section and move on to "Using the Administration Interface".
If you are using the version of the Sun ONE Application Server bundled with Solaris 9, you need to perform some extra configuration steps before you can start using the server.
When you install an unbundled version of the Sun ONE Application Server, as part of the installation process a domain, an Administration Server, and a server instance are automatically created.
When you use the Solaris 9 bundled version, you have to create these items manually, as well as perform other steps. Once you have performed these initial steps, you can take advantage of all Sun ONE Application server features, including adding additional administrative domains and server instances.
The following topics are discussed in this section:
Creating an Administrative Domain
Multiple administrative domains allow different administrative users to create and manage their own domains. A domain is a set of instances, created using a common set of installed binaries in a single system. Each domain has one Administration Server.
When you create a new domain, you specify:
- A port number for the Administration Server. The default when you install an unbundled version is 4848.
- An administration username and password. These passwords are required when you access the Administration Server, either when you access the Administration interface or when you run the command-line interface.
- The domain location.
You must create a domain using the command-line interface’s asadmin utility’s create-domain command. For more information on creating an administrative domain, see Chapter 3, "Configuring Administrative Domains."
Starting the Administration Server
When you create an administrative domain, you create an Administration Server. The Administration Server is a special instance of the Sun ONE Application Server that serves the Administration interface and provides administrative facilities for the command-line interface.
In order to use the Administration interface or to use many of the commands in the command-line interface, you must have a running Administration Server. For information on starting the Administration Server, see "Starting the Administration Server".
Creating an Application Server Instance
Once you have created a domain and started the Administration Server, you need to create an application server instance. Each application server instance has its own J2EE configuration, J2EE resources, application deployment areas, and server configuration settings.
You can create an application server instance through the Administration interface or through the command-line interface. The server instance is created in a folder within the domain.
On the unbundled version, the server instance created at installation is called server1. You will often see server1 used in examples throughout the documentation.
For more information about creating an application server instance, see "Adding an Application Server Instance".
Deploying Applications
Once you have created a domain, started the Administration Server, and added an application server instance, you can deploy applications to that instance. For more information, see Chapter 13, "Deploying Applications".
Using the Administration InterfaceUse the Administration interface to configure all aspects of your server. This section contains the following topics:
Accessing the Administration Interface
The Administration interface for Sun ONE Application Server runs on an HTTP server called the Administration Server. The Administration Server is installed when you install Sun ONE Application Server if you are using an unbundled version. You have to create an administrative domain and Administration Server if you are installing the bundled version. For more information, see "Configuring the Bundled Solaris Version".
The Administration Server must be running in order for you to use the Administration interface. For information on starting the Administration Server, see "Starting the Administration Server".
When you installed the Sun ONE Application Server or created a domain, you chose a port number for the Administration Server, or used the default port of 4848. To access the Administration interface, in a web browser type:
http://hostname.domain:port/
For example:
http://austen.sun.com:4848/
If you are accessing the Administration Server from the same machine you installed Sun ONE Application Server on, you can use:
http://localhost:4848
You are prompted for a user name and password, which the installing user set during installation or when you created the domain and Administration Server.
You can access the Administration interface from a remote location as long as you have access to a browser. You can access it from any machine that can reach the server over the network.
On Windows, you can access the Administration interface from the Start menu by choosing Programs, then Sun Microsystems, then Sun ONE Application Server 7, then Start Admin Console.
The following figure shows the Administration interface.
Figure 1-1 The Sun ONE Application Server Administration Interface
The left pane is a tree view of all items you can configure in the Sun ONE Application Server. To use the Administration interface, click an item in the left pane. The right pane displays the page associated with that item.
If an item in the left pane has an open/close symbol next to it, you can expand that item to subitems by clicking on the open/close symbol. When the tree item is not expanded, the symbol looks like this:
Figure 1-2 Closed Symbol
When the tree item is expanded, the symbol looks like this:
Figure 1-3 Open Symbol
Using Tabs
Some portions of the Administration interface contain tabs which you use to navigate to other pages. These tabs appear in a separate pane at the top of the right pane.
To use the tabs, click the tab name. Some tabs take you directly to a page, while others have a list of pages available from the tab which appear below the tab names. Click a page name to go to that page.
The following figure shows the Administration interface with tabs:
Figure 1-4 Administration Interface With Tabs
Using Buttons
The following standard buttons are available in the Administration interface.
Table 1-1 Standard Administration interface Buttons
Button
Action Performed
Cancel
Cancels without saving your changes and returns to previous page.
Delete
Deletes an item. Often you click Select next to an item to indicate what to delete when you click Delete.
New
Displays a page for creating a new item. For example, clicking New on the Application Server Instances page displays the Create New Instance page.
OK
Saves your entries. If you’ve made configuration changes to a Sun ONE Application Server instance, you must apply your changes in order for them to take effect.
For more information, see "Applying Changes to an Application Server Instance".
Reset
Resets the values on the page to the default values.
Save
Saves your entries. If you’ve made configuration changes to a Sun ONE Application Server instance, you must apply your changes in order for them to take effect.
For more information, see "Applying Changes to an Application Server Instance".
Other buttons are available depending upon the needs of a particular screen.
Accessing Online Help
You can access help for any page in the Administration interface by clicking the Help button in the banner at the top of the Administration interface. The online help describes the use of the page you are accessing and gives information about what to enter in the fields on the page.
Figure 1-5 Online Help
You can navigate to help for other pages using the table of contents in the left pane of the help window. For help on using help, see the first topic, Using Help, in the online help table of contents.
Exiting the Administration Interface
There is no explicit exit or logout button in the Administration interface. To exit, close the browser you are using to access the Administration interface. Also, close other instances of the same browser that may be running on your machine.
Using the Command-line InterfaceSun ONE Application Server contains a command-line interface. You can use the asadmin utility and the commands associated with it to perform the same set of tasks as you can perform in the Administration interface. For example, you can start and stop application server instances, configure the server, and deploy applications.
You can use these commands either from a command prompt in the shell, or you can call them from other scripts and programs. You can use these commands to automate repetitive administration tasks.
For more information about using the command-line interface, and for a list of commands, see Appendix A, "Using the Command Line Interface."
Accessing the Administration ServerThe Administration Server is a special instance of the Sun ONE Application Server that serves the Administration interface and provides administrative facilities for the Administration interface and the command-line interface. It manages the configuration, deployment, and monitoring facilities for these interfaces and tools, and so must be running for them to work.
To configure Administration Server properties, access the Administration interface. Click Admin Server in the left pane to display configuration settings for the Administration Server.
For more information on the Administration Server, see Chapter 2, "Setting Administration Server Preferences."
Accessing Application Server InstancesYou can have multiple Sun ONE Application Server instances. Each application server instance has its own configuration, resources, and application deployment areas that are independent of other application server instances. If you change the configuration for one application server instance, you do not change the configurations of other application server instances. The Administration interface contains an item for every application server instance you create. One application server instance is created at installation time if you are using the unbundled version of the software. You can create others if you like.
If you are using Solaris 9 bundled version, the application server instance is not automatically created. For more information, see "Configuring the Bundled Solaris Version".
For more information on application server instances, see Chapter 4, "Using Application Server Instances."
Using Sun ONE StudioTo deploy applications, in addition to using the Administration interface and the command-line interface, you can also use Sun ONE Studio 4. For more information about Sun ONE Studio, see the Sun ONE Studio 4, Enterprise Edition for Java with Application Server 7 Tutorial at http://docs.sun.com
About Configuration FilesWhen you make a change to the server settings through the Administration interface or command-line interface, the Administration Server changes the underlying configuration files. These files contain setting for the Administration Server and for individual application server instances.
For more information on the files and what settings they contain, see the Sun ONE Application Server Administrator’s Configuration File Reference.
Using the License CommandsWhen you purchase Sun ONE Application Server, a license of the appropriate type is installed automatically during installation. For more information on the types of licenses and their restrictions, see the Sun ONE Application Server Installation Guide.
Sun ONE Application Server contains command-line utilities for managing your licenses after installation.
To upgrade your license after installation, you can use the asadmin utility’s install-license command for Windows machines. This command must be run locally on the machine on which you have installed the Sun ONE Application Server. You must stop any running application server before installing a license.
It has the following syntax:
asadmin install-license
For unbundled Solaris package-based installations, the following syntax is used for license installation:
pkgadd -d full_path SUNWaslco
For example,
pkgadd -d /install_dir/pkg SUNWaslco
For Solaris 9 bundled license installation, the following syntax is used for license installation:
pkgadd -d full_path SUNWaslc
To get information on your license, use the display-license command, which has the following syntax:
asadmin display-license [--user admin_user] [--password admin_password] [--passwordfile password_file][--host localhost] [--port admin_port] [--local=true/false]
This command can be run locally or remotely, depending on the value of the local option. For example, to run the command from the local machine, taking the defaults for the host and the port number, the syntax is:
asadmin display-license --local
The output describes the type of license currently installed (for example, evaluation) the expiration date, if it has one, the number of instances per Administration Sever your license allows, and whether remote administration is allowed or not.
For more information on command syntax, see the command-line interface help. For more information on using asadmin, see Appendix A, "Using the Command Line Interface."