Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (815 KB)
Chapter 2 About Application Server 9.1 and Application Server 9.1 Update 2The Sun Java System Application Server 9.1 is a Java EE 5 platform-compatible server for the development and deployment of Java EE applications and Java technology-based web services in large-scale production environments. This chapter includes: What’s New in the 9.1 Update 2 ReleaseApplication Server 9.1 Update 2 is a minor update to Application Server 9.1. The Application Server 9.1 Update 2 includes the following enhancements:
What’s New in the 9.1 ReleaseApplication Server 9.1 is a minor update to Application Server 9.1. The Application Server 9.1 includes the following enhancements:
What’s New in the 9.1 ReleaseThe Application Server 9.1 includes the following enhancements:
Hardware and Software RequirementsThis section lists the requirements that must be met before installing the Sun Java System Application Server 9.1 product. Supported PlatformsThe following table lists the operating systems with which the Sun Java System Application Server 9.1 is compatible. Table 2–2 Supported Operating Systems
Note – Its recommended that you use the NTFS file system rather than FAT or FAT32 when running the Application Server on any Microsoft Windows platform. On UNIXTM, you can check your operating system version using the uname command. Disk space can be checked using the df command. Note – Although MacOS is not supported for production deployments, it is supported for development purposes. You can get information on downloading the Macintosh operating system from the GlassFish downloads page https://glassfish.dev.java.net/downloads/v2ur2-b04.html, or through the SDK page where Mac is listed. For example, on the JavaEE 5 SDK Update 5 download page https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=java_ee_sdk-5_05-nojdk-oth-JPR@CDS-CDS_Developer. System Virtualization SupportSystem virtualization is a technology that enables multiple operating system (OS) instances to execute independently on shared hardware. Functionally, software deployed to an OS hosted in a virtualized environment is generally unaware that the underlying platform has been virtualized. Sun performs testing of its Sun Java System products on select system virtualization and OS combinations to help validate that the Sun Java System products continue to function on properly sized and configured virtualized environments as they do on non-virtualized systems. For information about Sun support for Sun Java System products in virtualized environments, see System Virtualization Support in Sun Java System Products. Important Patch InformationSolaris Patch RequirementsIt is recommended that Solaris 9, 10 (x86, SPARC) users have the “Sun recommended patch cluster” installed. This patch cluster is available under “Recommended and Security Patches” on the SunSolve Web site. JDK VersionThe minimum (and certified) version of JDK required for Application Server 9.1 is 1.5.0_12.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
JDBC Driver Vendor |
JDBC Driver Type |
Supported Database Server |
|---|---|---|
|
Derby Network Client |
Type 4 |
Derby 10.2 |
|
DataDirect 3.6.x, 3.7.x |
Type 4 |
Oracle 10g Oracle 9i Sybase ASE 15 MS SQL 2005 DB2 9.1 DB2 8.2 |
|
MySQL Connector/J Driver 5.1.6 |
Type 4 |
MySQL 5.0 |
|
Oracle 10G |
Type 4 |
Oracle 10g -RAC |
|
PostGres |
Type 4 |
8.2.x |
Table 2–4 lists all the additional databases and drivers scheduled to be supported in the Application Server FCS release.
Table 2–4 Supported JDBC Drivers and Databases (Application Server FCS)|
JDBC Driver Vendor |
JDBC Driver Type |
Supported Database Server |
|---|---|---|
|
Oracle OCI |
Type 2 |
Oracle 9i |
|
IBM DB2 |
Type 2 |
DB2 9.1 |
In general, the Application Server 9.1 supports all JDBC drivers that meet the Java EE specification.
This section provides instructions for using the Java DB database implementation bundled with Application Server 9.1. Java DB is based on the Apache Derby database.
Sun Java System Application Server 9.1 introduces two new asadmin commands for starting and stopping the Java DB Network Server.
Use the asadmin start-database command to start an instance of the Java DB network server:
asadmin start-database [--dbhost 0.0.0.0] [--dbport 1527] [--dbhome path] |
The default value for the host is 0.0.0.0, which enables Java DB to listen on localhost as well as the IP/hostname interfaces. The value for the dbhome property is the location of where the Java DB databases reside. The default path is as-install/javadb.
Use the asadmin stop-database command to shut down a running instance of the Java DB network server:
asadmin stop-database [--dbhost 0.0.0.0] [--dbport 1527] |
The Java DB configuration that is supplied with Application Server 9.1 includes scripts that can help you use Java DB. The following scripts are available for use in the as-install/javadb/bin directory:
startNetworkServer, startNetworkServer.bat— Script to start the network server
stopNetworkServer, stopNetworkServer.bat— Script to stop the network server
ij, ij.bat— Interactive JDBC scripting tool
dblook, dblook.bat — Script to view all or part of the DDL for a database
sysinfo, sysinfo.bat — Script to display versioning information about the Java DB environment
NetworkServerControl, NetworkServerControl.bat — Script which provides a means of executing commands on the NetworkServerControl API
Ensure that the JAVA_HOME environment variable specifies the directory where the JDK is installed.
Set the DERBY_HOME environment variable to point to the as-install/javadb directory.
For more information about these utilities, see the following Derby documentation:
The embedded Sun Java System Message Queue code that is supplied as part of Application Server is only tested and certified (typically) against the equivalent version of the Message Queue broker. This means that using the supplied embedded Message Queue code to connect to a remote (not managed by Application Server) Message Queue broker running a different version of the Message Queue code is not supported.
This section lists the web servers that are supported for the Sun Java System Application Server 9.1.
Table 2–5 Supported Web Servers|
Web Server |
Version |
Operating System |
|---|---|---|
|
Sun Java System Web Server |
6.1, 7.0 |
Solaris SPARC 8, 9, 10 Solaris x86 9, 10 Red Hat Enterprise Linux 2.1 Update 2, 3.0 Update 1 |
|
Apache Web Server |
1.3+, 1.4, 2.0 |
Solaris SPARC 9, 10 Solaris x86 10 Red Hat Enterprise Linux 2.1 Update 2, 3.0 Update 1 |
|
Microsoft IISTM |
5.0+ |
Windows Server 2003 Windows 2000 Advanced Server Service Pack 4+ |
Support for additional platforms, including Windows and HP-UX, will be available at a later date.
This section lists the browsers that are supported with the Sun Java System Application Server 9.1.
Table 2–6 Supported Web Browsers|
Browser |
Version |
|---|---|
|
Mozilla |
1.7.12 |
|
Internet Explorer |
6.0 Service Pack 2, 7.0 |
|
Firefox |
1.5.x, 2.x |
|
Safari |
2 |
|
Netscape |
8.0.4, 8.1, 9.0, 9.0.x |
In addition to the requirements listed in Hardware and Software Requirements, verify that your system meets the requirements listed below for running HADB.
HADB is only bundled with the Application Server 9.1 Enterprise profile. Also note that the Java components of the system have been built with JDK 5 and has been tested on JDK 1.5.
Solaris (SPARC) – Solaris 8 MU7, Solaris 9 MU7, Solaris 10 RR.
Solaris (x86) – Solaris 9 MU7, Solaris 10 RR.
RedHat Enterprise Linux - 2.1 U5 (only ext2 file system is supported, not ext3), 3.0 U4 (both ext2 and ext3 are supported. Updates before U4 are not recommended due to excessive swapping). Note that HADB is tested on these operating system versions in 32–bit mode only. Also, note that HADB does not support RedHat Enterprise Linux 3.0 running in 64–bit mode due to a bug in the operating system (see known bug 6249685 in the High Availability section for details about impact on HADB).
Microsoft Windows – Microsoft Windows 2000 Advanced Server Service Pack 4 and Microsoft Windows 2003 Enterprise Edition. Note that HADB does not support any of the forthcoming Microsoft Windows operating system versions in 64–bit mode.
Minimum memory - 320 MB per node.
Minimum free disk space - 70 MB for HADB binaries per host. In addition, disk space is needed for the data devices, 512 MB for a test installation per node.
Recommended memory - 512 MB per node.
Recommended free disk space - 70 MB for HADB binaries per host. In addition, disk space is needed for the data devices, 1200 MB for a test installation per node.
Make sure write caching is disabled on devices storing HADB data and log files. Write caching is enabled by default on some Solaris platforms; for example, Solaris x86.
Minimum memory - 128 MB
Minimum free disk space - 70 MB for HADB binaries per node
Minimum memory - 120 MB
Minimum free disk space - 20 MB
Refer to the Sun Java System Application Server 9.1 Update 1 Upgrade and Migration Guide for complete instructions for upgrading from a previous version of the Application Server to the current version.
The following additional requirements should be met before installing the Sun Java System Application Server software.
Free space: your temporary directory must have a minimum of 35MB free for Sun Java System Application Server installation, and 250 MB of free space for the SDK installation.
Using the uninstall program: If you need to remove the Application Server from your system, it is important to use the uninstall program that is included with the software. If you attempt to use another method, problems will arise when you try to reinstall the same version, or when you install a new version.
Free ports: You must have seven unused ports available. The installation program automatically detects ports in use and suggests currently unused ports for the default domain. By default, the initial default ports are:
8080 for HTTP, 8181 for HTTPS
3700 for IIOP, 3820 for IIOP/SSL and 3920 for IIOP/SSL with Mutual Authentication
4848 (HTTP) for the Administration Server
8686 (RMI) port for pure JMX Clients
Starting previously-installed servers (UNIX) — unless you are replacing the previously installed server, you should start it before you begin the Sun Java System Application Server 9.1 installation process. This allows the installation program to detect ports that are in use and avoid assigning them for other uses.
Replacing previously-installed servers (UNIX) — Refer to the Sun Java System Application Server 9.1 Update 1 Upgrade and Migration Guide for complete instructions for upgrading from a previous version of the Application Server.
Shutting down firewall (Microsoft Windows) — You must stop any firewall software before installing the Sun Java System Application Server software, because some of this software disables all ports by default. The installation program must be able to accurately determine which ports are available.
For further compatibility information, see theSun Java System Application Server 9.1 Update 1 Upgrade and Migration Guide.
The Sun Java System Application Server 9.1 supports the Java EE 5 platform. The following table lists the enhanced APIs available on the Java EE 5 platform.
Table 2–7 Major API changes on the Java EE 5 Platform|
API |
JSR |
|---|---|
|
Java EE 5 |
|
|
Web Services Technologies |
|
|
Implementing Enterprise Web Services | |
|
Web Service Metadata for the Java Platform | |
|
Component Model Technologies |
|
|
Management Technologies |
|
|
Other Java EE Technologies |
|
|
Common Annotations for the Java Platform | |
Sun Java System Application Server 9.1 is available as part of the Java EE 5 SDK.
There are two Java EE 5 SDK versions:
In addition, you can download these SDK distributions with the JDK or with the NetBeans 5.5.1 tools. For more information, access the download page at http://java.sun.com/javaee/downloads/index.jsp.
GlassFish V2 and Application Server 9.1 does not work with NetBeans 5.5 for developing Java EE applications. You must use NetBeans 5.5.1.
Sun Java System Application Server 9.1 requires J2SE 5.0 or greater as the underlying JVM. If you want to switch from one Java version to another, perform the following general steps. (Windows and Unix)
Downgrading to an earlier Java version is not recommended after a domain has been created with a newer Java VM. If you must downgrade your JVM, it is recommended that you do it on a per-domain basis. The following procedure describes how to do this.
Download the desired Java SDK (not the JRE) and install it on your system, if you have not already done so.
The Java SDK can be downloaded from http://java.sun.com/j2se.
Start the domain for which you want to change the JDK:
as-install/bin/asadmin start-domain domain-name |
Log in to the Admin console and change the JVM attributes for the domain.
In particular, you may want to change the JAVA_HOME variable on the JVM Settings page for the domain.
Alternatively, you can use the asadmin command:
as-install/bin/asadmin set "server.java-config.java-home=Path-To-Java-Home" |
There are two known compatibility issues between Application Server 9.1 and Java ES 5 (JES5).
The JES5 Service Registry is not compatible with Application Server 9.1 because of the JSF 1.2 version provided by Application Server 9.1. The Service Registry needs to be upgraded to JES5u1 prior the Application Server upgrade to 9.1. This limitation is also documented in the Service Registry documentation.
The JES5 Portal Server is not compatible with Application Server 9.1 because of the JSF 1.2 version provided by Application Server 9.1. Portal Server needs to be upgraded to JES5u1 prior the 9.1 upgrade to 9.1.
On a Java ES 5 setup that has Portal Server on Application Server 8.2, upgrading Application Server 8.2 to 9.1 makes the Portal Server unusable. Application Server 9.1 uses JSF 1.2, but the JSF-Portlet bridge in Release 5 Portal Server does not support JSF 1.2. On Solaris/Linux the Portal Server needs to be upgraded to JavaES5 Update 1. On Windows do not upgrade Application Server to 9.1 if you want to continue using the Release 5 Portal Server, as Portal Server is not supported in Java ES 5 Update 1 on Windows.
Some features of the Application Server are not supported on all operating systems. Details about these features are provided in the subsections that follow.
If you are using the AIX operating system, the following limitations apply:
Application Server 9.1 is supported on the AIX operating system only for domains that are created with the developer profile or the cluster profile. The enterprise profile is not supported on the AIX operating system because HADB and NSS are not supported on the AIX operating system.
For the AIX operating system, the native launcher is not available.
If you are using the Linux operating system, the following limitations apply:
For the SuSe Linux 64–bit operating system and 64–bit JVM, the native launcher is not available.
The enterprise profile is not supported the following platforms:
RedHat Enterprise Linux 64–bit operating system and 64–bit JVM
SuSe Linux 64–bit operating system and 64–bit JVM
If you are using the Ubuntu Linux operating system, the following limitations apply:
Because Application Server 9.1 is bundled with the Ubuntu Linux operating system, installation information in the Application Server 9.1 documentation set is not relevant to this operating system.
The enterprise profile is not supported on the Ubuntu Linux operating system because HADB and NSS are not supported on the Ubuntu Linux operating system.
The Application Server 9.1 Update Center provides automated Application Server updates and easy access to additional components.
When the Update Center is enabled, it performs an automated software update. During this automated update process, the Update Center collects and transmits the following data to Sun Microsystems (or its service provider):
Unique installation ID (GUID)
IP address
Operating system information (name, version, architecture, locale)
JDK version
Module download information (module name, date, time, status, download time, number of bytes downloaded)
No personally identifiable information is tracked. No personally identifiable information is associated with any other data or used for reporting purposes.
To ensure explicit agreement of the automated update, the Update Center is disabled by default. To enable the Update Center to perform periodic checks and automated updates:
Start the Update Center.
On Unix: as-install/updatecenter/bin/updatetool
On Windows: as-install\updatecenter\bin\updatetool.bat
Select the Preferences tab.
In the Update Scheduling window, change the Check for Updates drop-down box value from Never (Manual) to a desired value. For example, daily or weekly.
Specify the desired day of the week and time of the day for the update.
Select the Save button to save your changes.
The Update Center will now automatically check for GlassFish or Application Server component updates according to the schedule specified. When an update is available, the Update Center will launch and notify you of the component available to update.
On the Ubuntu Linux operating system, installing GlassFish v2 does not override an existing installation of GlassFish v1. The asadmin script in /usr/bin administers GlassFish v2. To administer GlassFish v1, use its local asadmin utility in /usr/share/sunappserver/bin. To upgrade the v1 domain to v2, use the asupgrade tool located in /usr/share/glassfishv2/bin.
Using the global asadmin script to start a v1 domain results in the upgrade tool being invoked automatically. However, this causes an error due to a bug that uses the default domain location of the server for other (non-Ubuntu) platforms. To avoid this error, use the asupgrade tool instead.
Multilevel relationship prefetching is supported for CMP 2.1 entity beans.
To enable multilevel relationship prefetching, set the following property:
-Dcom.sun.jdo.spi.persistence.support.sqlstore.MULTILEVEL_PREFETCH=true |
For more information about relationship prefetching, see Relationship Prefetching in Sun Java System Application Server 9.1 Developer’s Guide.
For detailed information about WSIT status, refer to the WSIT Status Notes page. Also refer to the The WSIT Tutorial for information about using WSIT with Application Server.